Back to index

glibc  2.9
portability.h
Go to the documentation of this file.
00001 /* This file is used by some of the resolver code in inet/ that
00002    comes from BIND 4.9.  I have written this file instead of modifying
00003    those things not to use it so that I can later drop in replacement
00004    files from future BIND distributions without change.  */
00005 
00006 #include <unistd.h>
00007 #include <string.h>
00008 #include <stdlib.h>
00009 
00010 /* Some BIND code decides it can omit the definitions of some functions
00011    if BSD is defined to some value.  That might make sense when the BIND
00012    code is augmenting or replacing an existing system library, but we can
00013    never omit a function here, since we are defining the system library.  */
00014 
00015 #undef BSD
00016 
00017 /* Some code does stupid compatibility kludges for SunOS braindeath
00018    #ifdef sun.  */
00019 
00020 #undef sun
00021 
00022 /* The source code copied from BIND for inet_addr/inet_aton
00023    doesn't actually define the functions without these macros.  */
00024 
00025 #define NEED_INETADDR       1
00026 #define NEED_INETATON       1