From: Tom Yu Date: Fri, 10 Sep 2004 22:37:07 +0000 (+0000) Subject: * port-sockets.h: Remove _XOPEN_SOURCE_EXTENDED hack for netdb.h, X-Git-Tag: krb5-1.4-beta1~91 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=923239c78db7485b8d713924865392e1322bae01;p=krb5.git * 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 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 315480b24..fce9d1a63 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2004-09-10 Tom Yu + + * 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 * 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 700db7510..3154c6179 100644 --- a/src/include/port-sockets.h +++ b/src/include/port-sockets.h @@ -75,15 +75,7 @@ typedef WSABUF sg_buf; #include #include /* For struct sockaddr_in and in_addr */ #include /* For inet_ntoa */ - -#if !defined(_XOPEN_SOURCE_EXTENDED) && !defined(_WIN32) -/* Hack for HPUX, to get h_errno. */ -# define _XOPEN_SOURCE_EXTENDED 1 -# include -# undef _XOPEN_SOURCE_EXTENDED -#else -# include -#endif +#include #include /* For MAXHOSTNAMELEN */ #include /* For SOCK_*, AF_*, etc */