summaryrefslogtreecommitdiff
path: root/unix.c
diff options
context:
space:
mode:
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