Added XBPS_ARCH environment var to override uname(2) machine result.

This commit is contained in:
Juan RP
2014-01-09 11:41:25 +01:00
parent 6537004532
commit 804a39c63b
5 changed files with 41 additions and 18 deletions

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2008-2013 Juan Romero Pardines.
* Copyright (c) 2008-2014 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -561,7 +561,8 @@ struct xbps_handle {
/**
* @var native_arch
*
* Machine architecture, as returned by uname(2)::machine.
* Machine architecture, defaults to uname(2)::machine
* if XBPS_ARCH is not set from environment.
*/
char native_arch[16];
/**