1 [PATCH] wvuid.cc: getuid needs sys/types.h + unistd.h
3 Otherwise the build fails with:
5 utils/wvuid.cc: In function 'wvuid_t wvgetuid()':
6 utils/wvuid.cc:63:19: error: 'getuid' was not declared in this scope
8 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 1 file changed, 2 insertions(+)
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
22 +#include <sys/types.h>
24 WvString wv_username_from_uid(wvuid_t uid)