From 401a3d98e10f7a35614434758aac3115a30972f3 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sun, 12 May 2013 20:58:40 +0200 Subject: [PATCH] wvstreams: add missing includes for getuid() Fixes http://autobuild.buildroot.net/results/2ad80b1ae823fbe196f8a65220d5d4a0dd202c4e/ Signed-off-by: Peter Korsgaard --- package/wvstreams/wvstreams-0005-getuid.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/wvstreams/wvstreams-0005-getuid.patch diff --git a/package/wvstreams/wvstreams-0005-getuid.patch b/package/wvstreams/wvstreams-0005-getuid.patch new file mode 100644 index 0000000000..60150665ce --- /dev/null +++ b/package/wvstreams/wvstreams-0005-getuid.patch @@ -0,0 +1,25 @@ +[PATCH] wvuid.cc: getuid needs sys/types.h + unistd.h + +Otherwise the build fails with: + +utils/wvuid.cc: In function 'wvuid_t wvgetuid()': +utils/wvuid.cc:63:19: error: 'getuid' was not declared in this scope + +Signed-off-by: Peter Korsgaard +--- + utils/wvuid.cc | 2 ++ + 1 file changed, 2 insertions(+) + +Index: wvstreams-4.6.1/utils/wvuid.cc +=================================================================== +--- wvstreams-4.6.1.orig/utils/wvuid.cc ++++ wvstreams-4.6.1/utils/wvuid.cc +@@ -33,6 +33,8 @@ + + #else // not WIN32 + ++#include ++#include + + WvString wv_username_from_uid(wvuid_t uid) + { -- 2.30.2