* port-sockets.h: Remove _XOPEN_SOURCE_EXTENDED hack for netdb.h,
authorTom Yu <tlyu@mit.edu>
Fri, 10 Sep 2004 22:37:07 +0000 (22:37 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 10 Sep 2004 22:37:07 +0000 (22:37 +0000)
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

src/include/ChangeLog
src/include/port-sockets.h

index 315480b24a542f9d145a96f66cd9b35986fee05e..fce9d1a63508391b47ee014b06c96f8cf7df2592 100644 (file)
@@ -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
index 700db75108d3f805ebbb0921621ded690bc3158a..3154c6179e46d35e7b9f7b70feb2c4e2c69300b7 100644 (file)
@@ -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 */