3
* input file for autoheader/autoconf/configure: extra stuff for config.h
7
* Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
9
* It is part of adns, which is
10
* Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
11
* Copyright (C) 1999-2000 Tony Finch <dot@dotat.at>
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 2, or (at your option)
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* You should have received a copy of the GNU General Public License
24
* along with this program; if not, write to the Free Software Foundation,
25
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28
/* Define if inline functions a la GCC are available. */
31
/* Define if function attributes a la GCC 2.5 and higher are available. */
32
#undef HAVE_GNUC25_ATTRIB
34
/* Define if constant functions a la GCC 2.5 and higher are available. */
35
#undef HAVE_GNUC25_CONST
37
/* Define if nonreturning functions a la GCC 2.5 and higher are available. */
38
#undef HAVE_GNUC25_NORETURN
40
/* Define if printf-format argument lists a la GCC are available. */
41
#undef HAVE_GNUC25_PRINTFFORMAT
43
/* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
44
#undef HAVEUSE_RPCTYPES_H
48
/* Use the definitions: */
58
struct pollfd { int fd; short events; short revents; };
64
/* GNU C attributes. */
66
#ifdef HAVE_GNUC25_ATTRIB
67
#define FUNCATTR(x) __attribute__(x)
73
/* GNU C printf formats, or null. */
75
#ifdef HAVE_GNUC25_PRINTFFORMAT
76
#define ATTRPRINTF(si,tc) format(printf,si,tc)
78
#define ATTRPRINTF(si,tc)
82
#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
85
/* GNU C nonreturning functions, or null. */
87
#ifdef HAVE_GNUC25_NORETURN
88
#define ATTRNORETURN noreturn
94
#define NONRETURNING FUNCATTR((ATTRNORETURN))
97
/* Combination of both the above. */
98
#ifndef NONRETURNPRINTFFORMAT
99
#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
102
/* GNU C constant functions, or null. */
104
#ifdef HAVE_GNUC25_CONST
105
#define ATTRCONST const
111
#define CONSTANT FUNCATTR((ATTRCONST))
114
#ifdef HAVEUSE_RPCTYPES_H
115
#include <rpc/types.h>
118
#ifdef HAVE_SYS_SELECT_H
119
#include <sys/select.h>