The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / wvstreams / 0005-getuid.patch
1 [PATCH] wvuid.cc: getuid needs sys/types.h + unistd.h
2
3 Otherwise the build fails with:
4
5 utils/wvuid.cc: In function 'wvuid_t wvgetuid()':
6 utils/wvuid.cc:63:19: error: 'getuid' was not declared in this scope
7
8 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
9 ---
10  utils/wvuid.cc |    2 ++
11  1 file changed, 2 insertions(+)
12
13 Index: wvstreams-4.6.1/utils/wvuid.cc
14 ===================================================================
15 --- wvstreams-4.6.1.orig/utils/wvuid.cc
16 +++ wvstreams-4.6.1/utils/wvuid.cc
17 @@ -33,6 +33,8 @@
18  
19  #else // not WIN32
20  
21 +#include <unistd.h>
22 +#include <sys/types.h>
23  
24  WvString wv_username_from_uid(wvuid_t uid)
25  {