chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+ * Don't use <sys/select.h> any more, it was a mistake made in pre-1.0
[adns.git]
/
src
/
config.h.in
diff --git
a/src/config.h.in
b/src/config.h.in
index 80590fb617267e9ddbeed822ec2edf036886d378..c583fc0fecf03a3159418cb1f09d29c0afaa2613 100644
(file)
--- a/
src/config.h.in
+++ b/
src/config.h.in
@@
-1,5
+1,8
@@
/* src/config.h.in. Generated automatically from configure.in by autoheader. */
/* src/config.h.in. Generated automatically from configure.in by autoheader. */
+/* Define if inline functions a la GCC are available. */
+#undef HAVE_INLINE
+
/* Define if function attributes a la GCC 2.5 and higher are available. */
#undef HAVE_GNUC25_ATTRIB
/* Define if function attributes a la GCC 2.5 and higher are available. */
#undef HAVE_GNUC25_ATTRIB
@@
-12,6
+15,9
@@
/* Define if printf-format argument lists a la GCC are available. */
#undef HAVE_GNUC25_PRINTFFORMAT
/* Define if printf-format argument lists a la GCC are available. */
#undef HAVE_GNUC25_PRINTFFORMAT
+/* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
+#undef HAVEUSE_RPCTYPES_H
+
/* Define if you have the poll function. */
#undef HAVE_POLL
/* Define if you have the poll function. */
#undef HAVE_POLL
@@
-23,9
+29,14
@@
/* Use the definitions: */
/* Use the definitions: */
+#ifndef HAVE_INLINE
+#define inline
+#endif
+
#ifdef HAVE_POLL
#include <sys/poll.h>
#else
#ifdef HAVE_POLL
#include <sys/poll.h>
#else
+/* kludge it up */
struct pollfd { int fd; short events; short revents; };
#define POLLIN 1
#define POLLPRI 2
struct pollfd { int fd; short events; short revents; };
#define POLLIN 1
#define POLLPRI 2
@@
-81,3
+92,7
@@
struct pollfd { int fd; short events; short revents; };
#ifndef CONSTANT
#define CONSTANT FUNCATTR((ATTRCONST))
#endif
#ifndef CONSTANT
#define CONSTANT FUNCATTR((ATTRCONST))
#endif
+
+#ifdef HAVEUSE_RPCTYPES_H
+#include <rpc/types.h>
+#endif