diff options
author | tron <tron@openttd.org> | 2005-08-11 07:29:24 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-08-11 07:29:24 +0000 |
commit | df7182017d6840de8844b1f6471fa635c076064d (patch) | |
tree | b6fe78083896978f35f2da71e65224fa1710c49b /unix.c | |
parent | 0472a80be6b281cba5367ebd74c1dc860d08118f (diff) | |
download | openttd-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |