Find INADDR_LOOPBACK in <rpc/types.h> (crap BSDs)
[adns] / acconfig.h
index ae59c59..60f5614 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