chiark / gitweb /
Find INADDR_LOOPBACK in <rpc/types.h> (crap BSDs)
[adns.git] / acconfig.h
index ae59c59ed9a47b37838a49232e4c44f9a92b72c0..60f56144d5ff5d4f99431b5636f0983ecead383d 100644 (file)
@@ -32,6 +32,9 @@
 /* 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: */
@@ -95,3 +98,7 @@ struct pollfd { int fd; short events; short revents; };
 #ifndef CONSTANT
 #define CONSTANT FUNCATTR((ATTRCONST))
 #endif
+
+#ifdef HAVEUSE_RPCTYPES_H
+#include <rpc/types.h>
+#endif