summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-11 07:29:24 +0000
committertron <tron@openttd.org>2005-08-11 07:29:24 +0000
commit4582eb85a265a891665f383cb2231518c05020f9 (patch)
treeb6fe78083896978f35f2da71e65224fa1710c49b
parent042f079b8dcfb74e8738e4601f11a56d1a468cd9 (diff)
downloadopenttd-4582eb85a265a891665f383cb2231518c05020f9.tar.xz
(svn r2849) Fix r2806: pwd.h is necessary, but only if USE_HOMEDIR is defined
-rw-r--r--unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index ba2f6a922..410604b5e 100644
--- a/unix.c
+++ b/unix.c
@@ -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