libglib2: bump to version 2.48.2
[buildroot-gz.git] / package / wvstreams / 0005-getuid.patch
blob60150665ce4fa849893251c88135c154443dd2e8
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>
9 ---
10 utils/wvuid.cc | 2 ++
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
17 @@ -33,6 +33,8 @@
19 #else // not WIN32
21 +#include <unistd.h>
22 +#include <sys/types.h>
24 WvString wv_username_from_uid(wvuid_t uid)