+2009-03-03 Corinna Vinschen <corinna@vinschen.de>
+
+ * include/asm/byteorder.h: Disable optimization when building
+ Cygwin network code.
+
2009-02-26 Christopher Faylor <me+cygwin@cgf.cx>
* dtable.cc (dtable::select_read): Add ability to override fh.
/* asm/byteorder.h
- Copyright 1996, 1998, 2001, 2006 Red Hat, Inc.
+ Copyright 1996, 1998, 2001, 2006, 2009 Red Hat, Inc.
This file is part of Cygwin.
#define __constant_htonl(x) __constant_ntohl(x)
#define __constant_htons(x) __constant_ntohs(x)
-#if defined (__OPTIMIZE__) && !defined (__NO_INLINE__)
+#if defined (__OPTIMIZE__) && !defined (__NO_INLINE__) \
+ && !defined (__INSIDE_CYGWIN_NET__)
# define ntohl(x) \
(__builtin_constant_p((long)(x)) ? \
__constant_ntohl((x)) : \