(svn r2849) Fix r2806: pwd.h is necessary, but only if USE_HOMEDIR is defined
authortron
Thu, 11 Aug 2005 07:29:24 +0000
changeset 2323 13182c22f164
parent 2322 962f8825ff6b
child 2324 117bd73a0731
(svn r2849) Fix r2806: pwd.h is necessary, but only if USE_HOMEDIR is defined
unix.c
--- a/unix.c	Wed Aug 10 21:16:38 2005 +0000
+++ b/unix.c	Thu Aug 11 07:29:24 2005 +0000
@@ -15,6 +15,10 @@
 #include <time.h>
 #include <signal.h>
 
+#ifdef USE_HOMEDIR
+#include <pwd.h>
+#endif
+
 #if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__)
 	#define HAS_STATVFS
 #endif