summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/asm/byteorder.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/include/asm/byteorder.h b/winsup/cygwin/include/asm/byteorder.h
index 6942a2a36..3f59f7039 100644
--- a/winsup/cygwin/include/asm/byteorder.h
+++ b/winsup/cygwin/include/asm/byteorder.h
@@ -1,6 +1,6 @@
/* 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.
@@ -70,7 +70,8 @@ __ntohs(uint16_t x)
#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)) : \