pkgsrc-wip/ar7/patches/patch-aa
Georg Schwarz f55124921b ensure that close() as well as get_sock() are properly defined at compile time.
This issue surfaced on Solaris with the Sunpro compiler.
2010-06-19 22:52:24 +00:00

16 lines
428 B
Text

$NetBSD: patch-aa,v 1.2 2010/06/19 22:52:24 gschwarz Exp $
--- src/net.h.orig 2006-05-20 19:53:42.000000000 +0200
+++ src/net.h 2010-06-20 00:23:07.000000000 +0200
@@ -1,7 +1,11 @@
#if !defined(__WIN32__)
+ #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
#else
#include <winsock2.h>
#endif