freebsd-nq/contrib/bind9/acconfig.h

146 lines
4.1 KiB
C
Raw Normal View History

2004-09-19 01:30:24 +00:00
/*
2009-05-31 00:11:36 +00:00
* Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
2004-09-19 01:30:24 +00:00
* Copyright (C) 1999-2003 Internet Software Consortium.
*
2009-05-31 00:11:36 +00:00
* Permission to use, copy, modify, and/or distribute this software for any
2004-09-19 01:30:24 +00:00
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
2009-05-31 00:11:36 +00:00
/* $Id: acconfig.h,v 1.51.334.2 2009/02/16 23:47:15 tbox Exp $ */
2007-06-02 23:21:47 +00:00
/*! \file */
2004-09-19 01:30:24 +00:00
/***
*** This file is not to be included by any public header files, because
*** it does not get installed.
***/
@TOP@
2007-06-02 23:21:47 +00:00
/** define on DEC OSF to enable 4.4BSD style sa_len support */
2004-09-19 01:30:24 +00:00
#undef _SOCKADDR_LEN
2007-06-02 23:21:47 +00:00
/** define if your system needs pthread_init() before using pthreads */
2004-09-19 01:30:24 +00:00
#undef NEED_PTHREAD_INIT
2007-06-02 23:21:47 +00:00
/** define if your system has sigwait() */
2004-09-19 01:30:24 +00:00
#undef HAVE_SIGWAIT
2007-06-02 23:21:47 +00:00
/** define if sigwait() is the UnixWare flavor */
2004-09-19 01:30:24 +00:00
#undef HAVE_UNIXWARE_SIGWAIT
2007-06-02 23:21:47 +00:00
/** define on Solaris to get sigwait() to work using pthreads semantics */
2004-09-19 01:30:24 +00:00
#undef _POSIX_PTHREAD_SEMANTICS
2007-06-02 23:21:47 +00:00
/** define if LinuxThreads is in use */
2004-09-19 01:30:24 +00:00
#undef HAVE_LINUXTHREADS
2007-06-02 23:21:47 +00:00
/** define if sysconf() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_SYSCONF
2007-06-02 23:21:47 +00:00
/** define if sysctlbyname() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_SYSCTLBYNAME
2007-06-02 23:21:47 +00:00
/** define if catgets() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_CATGETS
2007-06-02 23:21:47 +00:00
/** define if getifaddrs() exists */
2004-09-19 01:30:24 +00:00
#undef HAVE_GETIFADDRS
2007-06-02 23:21:47 +00:00
/** define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */
2004-09-19 01:30:24 +00:00
#undef HAVE_IFLIST_SYSCTL
2007-06-02 23:21:47 +00:00
/** define if tzset() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_TZSET
2007-06-02 23:21:47 +00:00
/** define if struct addrinfo exists */
2004-09-19 01:30:24 +00:00
#undef HAVE_ADDRINFO
2007-06-02 23:21:47 +00:00
/** define if getaddrinfo() exists */
2004-09-19 01:30:24 +00:00
#undef HAVE_GETADDRINFO
2007-06-02 23:21:47 +00:00
/** define if gai_strerror() exists */
2004-09-19 01:30:24 +00:00
#undef HAVE_GAISTRERROR
2007-06-02 23:21:47 +00:00
/** define if arc4random() exists */
2004-09-19 01:30:24 +00:00
#undef HAVE_ARC4RANDOM
2007-06-02 23:21:47 +00:00
/**
* define if pthread_setconcurrency() should be called to tell the
2004-09-19 01:30:24 +00:00
* OS how many threads we might want to run.
*/
#undef CALL_PTHREAD_SETCONCURRENCY
2007-06-02 23:21:47 +00:00
/** define if IPv6 is not disabled */
2004-09-19 01:30:24 +00:00
#undef WANT_IPV6
2007-06-02 23:21:47 +00:00
/** define if flockfile() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_FLOCKFILE
2007-06-02 23:21:47 +00:00
/** define if getc_unlocked() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_GETCUNLOCKED
2007-06-02 23:21:47 +00:00
/** Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
2004-09-19 01:30:24 +00:00
#undef SHUTUP_SPUTAUX
#ifdef SHUTUP_SPUTAUX
struct __sFILE;
extern __inline int __sputaux(int _c, struct __sFILE *_p);
#endif
2007-06-02 23:21:47 +00:00
/** Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */
2004-09-19 01:30:24 +00:00
#undef SHUTUP_SIGWAIT
#ifdef SHUTUP_SIGWAIT
int sigwait(const unsigned int *set, int *sig);
#endif
2007-06-02 23:21:47 +00:00
/** Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
2004-09-19 01:30:24 +00:00
#undef SHUTUP_STDARG_CAST
#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
2007-06-02 23:21:47 +00:00
#include <stdarg.h> /** Grr. Must be included *every time*. */
/**
2004-09-19 01:30:24 +00:00
* The silly continuation line is to keep configure from
* commenting out the #undef.
*/
2009-05-31 00:11:36 +00:00
2004-09-19 01:30:24 +00:00
#undef \
va_start
#define va_start(ap, last) \
do { \
union { const void *konst; long *var; } _u; \
_u.konst = &(last); \
ap = (va_list)(_u.var + __va_words(__typeof(last))); \
} while (0)
2007-06-02 23:21:47 +00:00
#endif /** SHUTUP_STDARG_CAST && __GNUC__ */
2004-09-19 01:30:24 +00:00
2007-06-02 23:21:47 +00:00
/** define if the system has a random number generating device */
2004-09-19 01:30:24 +00:00
#undef PATH_RANDOMDEV
2007-06-02 23:21:47 +00:00
/** define if pthread_attr_getstacksize() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_PTHREAD_ATTR_GETSTACKSIZE
2007-06-02 23:21:47 +00:00
/** define if pthread_attr_setstacksize() is available */
2004-09-19 01:30:24 +00:00
#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
2007-06-02 23:21:47 +00:00
/** define if you have strerror in the C library. */
2004-09-19 01:30:24 +00:00
#undef HAVE_STRERROR
2007-06-02 23:21:47 +00:00
/** Define if you are running under Compaq TruCluster. */
2004-09-19 01:30:24 +00:00
#undef HAVE_TRUCLUSTER
/* Define if OpenSSL includes DSA support */
#undef HAVE_OPENSSL_DSA
2005-03-17 08:04:02 +00:00
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
#undef ISC_SOCKADDR_LEN_T
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
#undef NEED_PTHREAD_SCOPE_SYSTEM