summaryrefslogtreecommitdiff
path: root/unix.c
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
commitdf7182017d6840de8844b1f6471fa635c076064d (patch)
treeb6fe78083896978f35f2da71e65224fa1710c49b /unix.c
parent0472a80be6b281cba5367ebd74c1dc860d08118f (diff)
downloadopenttd-df7182017d6840de8844b1f6471fa635c076064d.tar.xz
(svn r2849) Fix r2806: pwd.h is necessary, but only if USE_HOMEDIR is defined
Diffstat (limited to 'unix.c')
-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