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 | 4582eb85a265a891665f383cb2231518c05020f9 (patch) | |
tree | b6fe78083896978f35f2da71e65224fa1710c49b | |
parent | 042f079b8dcfb74e8738e4601f11a56d1a468cd9 (diff) | |
download | openttd-4582eb85a265a891665f383cb2231518c05020f9.tar.xz |
(svn r2849) Fix r2806: pwd.h is necessary, but only if USE_HOMEDIR is defined
-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 |