This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] cygwin: make <sys/socket.h> completely visible from <netinet/in.h>
- From: Yaakov Selkowitz <yselkowitz at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 19 Jan 2018 18:08:54 -0000
- Subject: [newlib-cygwin] cygwin: make <sys/socket.h> completely visible from <netinet/in.h>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=061710370c6e02b87f5e366310d41f99ae73e5df
commit 061710370c6e02b87f5e366310d41f99ae73e5df
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Mon Jan 15 21:19:59 2018 -0600
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>
Diff:
---
winsup/cygwin/include/cygwin/in.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/include/cygwin/in.h b/winsup/cygwin/include/cygwin/in.h
index 9d7331d..42b7766 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;