blob: 0e70a870f44464c92bf457c70c8c7f50b3df6693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-plug-ins_script-fu_script-fu-server.c,v 1.3 2013/02/16 19:43:03 adam Exp $
AI_ADDRCONFIG is not defined on some platforms.
--- plug-ins/script-fu/script-fu-server.c.orig 2012-02-04 18:42:45.000000000 +0000
+++ plug-ins/script-fu/script-fu-server.c
@@ -460,7 +460,11 @@ server_start (gint port,
const gchar *progress;
memset (&hints, 0, sizeof (hints));
+#ifdef AI_ADDRCONFIG
hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
+#else
+ hints.ai_flags = AI_PASSIVE;
+#endif
hints.ai_socktype = SOCK_STREAM;
port_s = g_strdup_printf ("%d", port);
|