about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-01T14·09+0000
committerEelco Dolstra <edolstra@gmail.com>2020-01-04T12·40+0100
commita53e4e217bffd5d675dd0a3ea684131947c9c1fb (patch)
tree6ea327152c18b41a560f8b1ef84d2130c80abd5f /src
parent61855a4e7bbaeb26de5a73040d87c28944e76b13 (diff)
include netinet/in.h in src/nix/main.cc
Fixes #3186

(cherry picked from commit b811bd2172bc9796f42b87996f455d4e5e4382ba)
Diffstat (limited to 'src')
-rw-r--r--src/nix/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index a80fd0ea62fc..c683d86df47b 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -15,6 +15,7 @@
 #include <sys/socket.h>
 #include <ifaddrs.h>
 #include <netdb.h>
+#include <netinet/in.h>
 
 extern std::string chrootHelperName;