1 | /* This file is used by some of the resolver code in inet/ that |
2 | comes from BIND 4.9. I have written this file instead of modifying |
3 | those things not to use it so that I can later drop in replacement |
4 | files from future BIND distributions without change. */ |
5 | |
6 | #include <unistd.h> |
7 | #include <string.h> |
8 | #include <stdlib.h> |
9 | |
10 | /* Some BIND code decides it can omit the definitions of some functions |
11 | if BSD is defined to some value. That might make sense when the BIND |
12 | code is augmenting or replacing an existing system library, but we can |
13 | never omit a function here, since we are defining the system library. */ |
14 | |
15 | #undef BSD |
16 | |
17 | /* Some code does stupid compatibility kludges for SunOS braindeath |
18 | #ifdef sun. */ |
19 | |
20 | #undef sun |
21 | |
22 | /* The source code copied from BIND for inet_addr/inet_aton |
23 | doesn't actually define the functions without these macros. */ |
24 | |
25 | #define NEED_INETADDR 1 |
26 | #define NEED_INETATON 1 |
27 | |