summaryrefslogtreecommitdiff
path: root/nix-test/src/const.c
diff options
context:
space:
mode:
authorGeoffrey Thomas <geofft@ldpreload.com>2015-08-26 19:24:22 -0400
committerCarl Lerche <me@carllerche.com>2015-09-03 13:14:20 -0700
commit5255daec9c79c597c192891da0764a2812d2228d (patch)
treec53316974faa1947f3622c6237a963cfd2f834ce /nix-test/src/const.c
parentc6cad77d10836f12ecda7bee5fb7a57ee6ea4f89 (diff)
downloadnix-5255daec9c79c597c192891da0764a2812d2228d.zip
Make tests compile on FreeBSD
Add <sys/types.h>, which GNU is generally lenient about requiring, and drop the spurious errno "ETYPE" which is nowhere to be seen in the source tree (or in Apple's <errno.h>, either).
Diffstat (limited to 'nix-test/src/const.c')
-rw-r--r--nix-test/src/const.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nix-test/src/const.c b/nix-test/src/const.c
index 42030833..41ff7843 100644
--- a/nix-test/src/const.c
+++ b/nix-test/src/const.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>