diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-24 16:03:40 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-24 17:55:25 +0300 |
commit | b1b46d458091646187775f594e6f4fa733fb7094 (patch) | |
tree | 257b686b5e3893798b9cfe270af1358d6f7b295e /newlib | |
parent | db5bfdbd8ab2729a95c95638fbcc1db8cbfef162 (diff) |
Drop usage of old-age BSD types in generically used Cygwin headers
u_char, u_short, u_int, u_long are BSD-only types. Remove them from
Cygwin headers which are supposed to be used in a non-BSD scenario.
Drop special Cygwin handling of those types in sys/types.h.
newlib:
* libc/include/sys/types.h (u_char,u_short,u_int,u_long): Drop
Cygwin exception.
cygwin:
* fhandler_socket.cc (fhandler_socket::ioctl): Accommodate change
in include/asm/socket.h. Continue using u_long since that's the
MS type here.
* include/asm/socket.h: Since the type given in _IOR/_IOW macros
is only used for its sizeof, replace u_long with equivalent long.
* netdb.h (getnetbyaddr): Fix prototype.
* netinet/ip.h: Replace old BSD-only types with generically defined
old BSD types (u_char -> u_int8_t, etc).
* netinet/tcp.h: Ditto.
* netinet/udp.h: Ditto.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/types.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index ebed1c010..f8808308e 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -87,8 +87,7 @@ typedef quad_t * qaddr_t; # define quad quad_t #endif -/* These types are required by netinet/ *.h on Cygwin */ -#if __MISC_VISIBLE || defined(__CYGWIN__) +#if __MISC_VISIBLE #ifndef _BSDTYPES_DEFINED /* also defined in mingw/gmon.h and in w32api/winsock[2].h */ #ifndef __u_char_defined |