pkgsrc/lang/ocaml/patches/patch-config_auto__aux_gethostbyaddr.c

16 lines
477 B
C

$NetBSD: patch-config_auto__aux_gethostbyaddr.c,v 1.2 2014/05/13 10:17:44 jaapb Exp $
Fix gethostbyaddr support for NetBSD
--- config/auto-aux/gethostbyaddr.c.orig 2012-10-15 13:50:56.000000000 -0400
+++ config/auto-aux/gethostbyaddr.c 2013-12-21 11:16:25.000000000 -0500
@@ -19,6 +19,10 @@
#include <sys/types.h>
#include <netdb.h>
+#ifdef __NetBSD__
+#error "the test does not handle missing prototypes"
+#endif
+
int main(int argc, char ** argv)
{
#if NUM_ARGS == 7