summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2018-01-15 21:19:59 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-19 12:08:27 -0600
commit061710370c6e02b87f5e366310d41f99ae73e5df (patch)
tree6a287850c23404b6048dae28e3015f68fcf261f2
parentfa47495755489a0807104a2a7c7347f57dc5d1f1 (diff)
downloadcygnal-061710370c6e02b87f5e366310d41f99ae73e5df.tar.gz
cygnal-061710370c6e02b87f5e366310d41f99ae73e5df.tar.bz2
cygnal-061710370c6e02b87f5e366310d41f99ae73e5df.zip
cygwin: make <sys/socket.h> completely visible from <netinet/in.h>
While POSIX mandates that certain socket types shall be defined by the inclusing of <netinet/in.h>, it also says that this header may also make visible all <sys/socket.h> symbols. Glibc does this, and without out it, some packages end up requiring an additional #include <sys/socket.h>. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
-rw-r--r--winsup/cygwin/include/cygwin/in.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/include/cygwin/in.h b/winsup/cygwin/include/cygwin/in.h
index 9d7331d30..42b776653 100644
--- a/winsup/cygwin/include/cygwin/in.h
+++ b/winsup/cygwin/include/cygwin/in.h
@@ -18,7 +18,7 @@
#ifndef _CYGWIN_IN_H
#define _CYGWIN_IN_H
-#include <cygwin/socket.h>
+#include <sys/socket.h>
#ifndef _IN_ADDR_T_DECLARED
typedef __uint32_t in_addr_t;