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]
/
acconfig.h
diff --git
a/acconfig.h
b/acconfig.h
index ae59c59ed9a47b37838a49232e4c44f9a92b72c0..60f56144d5ff5d4f99431b5636f0983ecead383d 100644
(file)
--- a/
acconfig.h
+++ b/
acconfig.h
@@
-32,6
+32,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
+
@BOTTOM@
/* Use the definitions: */
@BOTTOM@
/* Use the definitions: */
@@
-95,3
+98,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