openbsd-ports/x11/gnome/gdm/patches/patch-daemon_gdm-xdmcp-display-factory_c
2011-09-12 07:39:20 +00:00

38 lines
1.1 KiB
Plaintext

$OpenBSD: patch-daemon_gdm-xdmcp-display-factory_c,v 1.1 2011/09/12 07:39:21 ajacoutot Exp $
--- daemon/gdm-xdmcp-display-factory.c.orig Fri Feb 18 04:27:53 2011
+++ daemon/gdm-xdmcp-display-factory.c Fri Jun 17 15:13:52 2011
@@ -33,8 +33,9 @@
#include <sys/socket.h>
#include <netdb.h>
-#include <arpa/inet.h>
#include <net/if.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif
@@ -64,7 +65,7 @@
* On Sun, we need to define allow_severity and deny_severity to link
* against libwrap.
*/
-#ifdef __sun
+#if defined(__sun) || defined(__OpenBSD__)
#include <syslog.h>
int allow_severity = LOG_INFO;
int deny_severity = LOG_WARNING;
@@ -86,6 +87,13 @@ int deny_severity = LOG_WARNING;
#define GDM_MAX_FORWARD_QUERIES 10
#define GDM_FORWARD_QUERY_TIMEOUT 30
#define MANAGED_FORWARD_INTERVAL 1500 /* 1.5 seconds */
+
+#ifndef AI_ALL
+#define AI_ALL 0
+#endif
+#ifndef AI_V4MAPPED
+#define AI_V4MAPPED 0
+#endif
/* some extra XDMCP opcodes that xdm will happily ignore since they'll be
* the wrong XDMCP version anyway */