pkgsrc/net/gupnp-igd/patches/patch-ac
obache 43f0ffb1a3 * let to use selected PYTHONBIN and PYTHONCONFIG exactly.
* set TEST_TARGET
* fixes for DragonFly.
2010-12-25 06:33:11 +00:00

18 lines
469 B
Text

$NetBSD: patch-ac,v 1.1 2010/12/25 06:33:11 obache Exp $
* DragonFly require additional headers for inet_pton(3).
--- libgupnp-igd/gupnp-simple-igd.c.orig 2010-04-05 17:54:17.000000000 +0000
+++ libgupnp-igd/gupnp-simple-igd.c
@@ -36,6 +36,11 @@
#include "gupnp-simple-igd-marshal.h"
#include <string.h>
+#ifdef __DragonFly__
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#endif
#include <arpa/inet.h>
#include <libgupnp/gupnp.h>