Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
glibc/conf/portability.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (19 sloc)
912 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 | |
/* The source code copied from BIND for inet_addr/inet_aton | |
doesn't actually define the functions without these macros. */ | |
#define NEED_INETADDR 1 | |
#define NEED_INETATON 1 |