summary refs log tree commit diff
path: root/conf/portability.h
blob: ab41b5d977b2b659693ceb4ad7eef3098378a2be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* This file is used by some of the resolver code in inet/ that
   comes from BIND 4.9.  I have written this file instead of modifying
   those things not to use it so that I can later drop in replacement
   files from future BIND distributions without change.  */

#include <unistd.h>
#include <string.h>
#include <stdlib.h>

/* Some BIND code decides it can omit the definitions of some functions
   if BSD is defined to some value.  That might make sense when the BIND
   code is augmenting or replacing an existing system library, but we can
   never omit a function here, since we are defining the system library.  */

#undef BSD

/* Some code does stupid compatibility kludges for SunOS braindeath
   #ifdef sun.  */

#undef sun