chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Find INADDR_LOOPBACK in <rpc/types.h> (crap BSDs)
[adns]
/
src
/
config.h.in
diff --git
a/src/config.h.in
b/src/config.h.in
index 5de7cb0cd7c48f5f3bd5de41bf140801da8a6ae5..93a4ad8e93ede95b3c0a22e16260d25ecfd0559a 100644
(file)
--- a/
src/config.h.in
+++ b/
src/config.h.in
@@
-12,6
+12,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
@@
-82,3
+85,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