aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'env.c')
-rw-r--r--env.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/env.c b/env.c
index 355f3a16..6c455d58 100644
--- a/env.c
+++ b/env.c
@@ -16,6 +16,9 @@
#endif
#include <pwd.h>
#include <string.h>
+#ifdef HAVE_NET_SOCKET_H
+#include <net/socket.h>
+#endif
#ifdef HAVE_GETHOSTBYNAME
#include <netdb.h>
#endif /* HAVE_GETHOSTBYNAME */