0005-getuid.patch 640 B

12345678910111213141516171819202122232425
  1. [PATCH] wvuid.cc: getuid needs sys/types.h + unistd.h
  2. Otherwise the build fails with:
  3. utils/wvuid.cc: In function 'wvuid_t wvgetuid()':
  4. utils/wvuid.cc:63:19: error: 'getuid' was not declared in this scope
  5. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  6. ---
  7. utils/wvuid.cc | 2 ++
  8. 1 file changed, 2 insertions(+)
  9. Index: wvstreams-4.6.1/utils/wvuid.cc
  10. ===================================================================
  11. --- wvstreams-4.6.1.orig/utils/wvuid.cc
  12. +++ wvstreams-4.6.1/utils/wvuid.cc
  13. @@ -33,6 +33,8 @@
  14. #else // not WIN32
  15. +#include <unistd.h>
  16. +#include <sys/types.h>
  17. WvString wv_username_from_uid(wvuid_t uid)
  18. {