[newlib-cygwin] Drop defining _BSDTYPES_DEFINED before including winsup.h.
Corinna Vinschen
corinna@sourceware.org
Thu Mar 12 16:12:00 GMT 2015
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f9d35f473bf424201881fd1b49da44ac0c3bfd85
commit f9d35f473bf424201881fd1b49da44ac0c3bfd85
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Mar 12 17:11:19 2015 +0100
Drop defining _BSDTYPES_DEFINED before including winsup.h.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/ChangeLog | 5 +++++
winsup/cygwin/fhandler_socket.cc | 2 --
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e1e6a58..25d3996 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-12 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_socket.cc: Drop defining _BSDTYPES_DEFINED before including
+ winsup.h.
+
2015-03-12 Takashi Yano <takashi.yano@nifty.ne.jp>
* fhandler_tty.cc (fhandler_pty_master::close): Add code to make slave
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index 59561bc..1b28e52 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -14,9 +14,7 @@
#define __INSIDE_CYGWIN_NET__
#define USE_SYS_TYPES_FD_SET
-#define _BSDTYPES_DEFINED
#include "winsup.h"
-#undef _BSDTYPES_DEFINED
#ifdef __x86_64__
/* 2014-04-24: Current Mingw headers define sockaddr_in6 using u_long (8 byte)
because a redefinition for LP64 systems is missing. This leads to a wrong
More information about the Cygwin-cvs
mailing list