summaryrefslogtreecommitdiffstats
path: root/x11/gdm/files/patch-common_gdm-address.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gdm/files/patch-common_gdm-address.h')
-rw-r--r--x11/gdm/files/patch-common_gdm-address.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11/gdm/files/patch-common_gdm-address.h b/x11/gdm/files/patch-common_gdm-address.h
new file mode 100644
index 000000000..a4fd39310
--- /dev/null
+++ b/x11/gdm/files/patch-common_gdm-address.h
@@ -0,0 +1,11 @@
+--- common/gdm-address.h.orig 2009-05-09 21:08:07.000000000 -0400
++++ common/gdm-address.h 2009-05-09 21:08:34.000000000 -0400
+@@ -36,6 +36,8 @@ G_BEGIN_DECLS
+
+ #define GDM_TYPE_ADDRESS (gdm_address_get_type ())
+
++#define gdm_sockaddr_len(sa) (((struct sockaddr *)sa)->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in))
++
+ typedef struct _GdmAddress GdmAddress;
+
+ GType gdm_address_get_type (void);