diff options
author | schmonz <schmonz@pkgsrc.org> | 2022-01-28 21:34:51 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2022-01-28 21:34:51 +0000 |
commit | 10b8dc0b3dd965f3684cfd59ec60c999001b4579 (patch) | |
tree | a8d7a65bd62bb6b02528ebbf17d4fba491d92dd3 /devel/glib2/patches | |
parent | f36e980a1d5845c11a31e363756c85d8715b4eb4 (diff) | |
download | pkgsrc-10b8dc0b3dd965f3684cfd59ec60c999001b4579.tar.gz |
Sufficiently old Darwin (e.g., Snow Leopard) needs SOL_LOCAL defined.
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r-- | devel/glib2/patches/patch-gio_gcredentialsprivate.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/devel/glib2/patches/patch-gio_gcredentialsprivate.h b/devel/glib2/patches/patch-gio_gcredentialsprivate.h index a56a0adf77e..c32a5e5d777 100644 --- a/devel/glib2/patches/patch-gio_gcredentialsprivate.h +++ b/devel/glib2/patches/patch-gio_gcredentialsprivate.h @@ -1,8 +1,9 @@ -$NetBSD: patch-gio_gcredentialsprivate.h,v 1.4 2020/09/29 10:43:33 prlw1 Exp $ +$NetBSD: patch-gio_gcredentialsprivate.h,v 1.5 2022/01/28 21:34:51 schmonz Exp $ NetBSD has G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED. +Sufficiently old Darwin (e.g., Snow Leopard) needs SOL_LOCAL defined. ---- gio/gcredentialsprivate.h.orig 2020-08-18 10:52:24.847177300 +0000 +--- gio/gcredentialsprivate.h.orig 2021-12-03 10:02:55.000000000 +0000 +++ gio/gcredentialsprivate.h @@ -134,7 +134,7 @@ #define G_CREDENTIALS_USE_NETBSD_UNPCBID 1 @@ -13,3 +14,13 @@ NetBSD has G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED. #define G_CREDENTIALS_SPOOFING_SUPPORTED 1 #define G_CREDENTIALS_HAS_PID 1 +@@ -159,6 +159,9 @@ + + #elif defined(__APPLE__) + #include <sys/ucred.h> ++#ifndef SOL_LOCAL ++#define SOL_LOCAL 0 ++#endif + #define G_CREDENTIALS_SUPPORTED 1 + #define G_CREDENTIALS_USE_APPLE_XUCRED 1 + #define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_APPLE_XUCRED |