diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-03-03 11:11:26 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-03-03 11:11:26 +0000 |
commit | ed296a47279daf8af30812a6084ab4839c3d879d (patch) | |
tree | b78d31db52af8c772fb2eb9e113418dfe3e5e823 | |
parent | 92fa4552fdec83d9d7eb9100f7584c560d9ba37e (diff) | |
download | newlib-ed296a47279daf8af30812a6084ab4839c3d879d.zip newlib-ed296a47279daf8af30812a6084ab4839c3d879d.tar.gz newlib-ed296a47279daf8af30812a6084ab4839c3d879d.tar.bz2 |
* include/asm/byteorder.h: Disable optimization when building
Cygwin network code.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/asm/byteorder.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 54fe9ac..6698f1c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/winsup/cygwin/include/asm/byteorder.h b/winsup/cygwin/include/asm/byteorder.h index 6942a2a..3f59f70 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)) : \ |