Adapt for Linux with SOCK_CLOEXEC, patch from Harald Barth

This commit is contained in:
Love Hornquist Astrand
2010-01-26 10:46:51 -08:00
parent 4376b6c8b1
commit 908ece3604
4 changed files with 11 additions and 2 deletions

View File

@@ -3,6 +3,12 @@
BEGIN {
print "#include <config.h>"
print "#include <stdio.h>"
print "#ifdef HAVE_SYS_TYPES_H"
print "#include <sys/types.h>"
print "#endif"
print "#ifdef HAVE_SYS_SOCKET_H"
print "#include <sys/socket.h>"
print "#endif"
print ""
print "int main(int argc, char **argv)"
print "{"