diff options
author | Tom Yu <tlyu@mit.edu> | 2004-09-10 22:37:07 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2004-09-10 22:37:07 +0000 |
commit | 923239c78db7485b8d713924865392e1322bae01 (patch) | |
tree | e879b5030e6c5776e0115b890f1caf6c54d29ef8 /src/include | |
parent | 870b1c33852f7e0a36fbac41043d4d60caa67eb9 (diff) | |
download | krb5-923239c78db7485b8d713924865392e1322bae01.tar.gz krb5-923239c78db7485b8d713924865392e1322bae01.tar.xz krb5-923239c78db7485b8d713924865392e1322bae01.zip |
* port-sockets.h: Remove _XOPEN_SOURCE_EXTENDED hack for netdb.h,
as it can cause inconsistencies between headers. It significantly
broke HP-UX 10.20 anyway.
ticket: 2379
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16740 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ChangeLog | 6 | ||||
-rw-r--r-- | src/include/port-sockets.h | 10 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 315480b24a..fce9d1a635 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2004-09-10 Tom Yu <tlyu@mit.edu> + + * port-sockets.h: Remove _XOPEN_SOURCE_EXTENDED hack for netdb.h, + as it can cause inconsistencies between headers. It significantly + broke HP-UX 10.20 anyway. + 2004-09-01 Jeffrey Altman <jaltman@mit.edu> * krb5.hin: define KRB5_TC_NOTICKET for use with krb5_cc_set_flags diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h index 700db75108..3154c6179e 100644 --- a/src/include/port-sockets.h +++ b/src/include/port-sockets.h @@ -75,15 +75,7 @@ typedef WSABUF sg_buf; #include <sys/types.h> #include <netinet/in.h> /* For struct sockaddr_in and in_addr */ #include <arpa/inet.h> /* For inet_ntoa */ - -#if !defined(_XOPEN_SOURCE_EXTENDED) && !defined(_WIN32) -/* Hack for HPUX, to get h_errno. */ -# define _XOPEN_SOURCE_EXTENDED 1 -# include <netdb.h> -# undef _XOPEN_SOURCE_EXTENDED -#else -# include <netdb.h> -#endif +#include <netdb.h> #include <sys/param.h> /* For MAXHOSTNAMELEN */ #include <sys/socket.h> /* For SOCK_*, AF_*, etc */ |