summaryrefslogtreecommitdiffstats
path: root/security/gnome-keyring
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-08-14 13:21:53 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-08-14 13:21:53 +0800
commit81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f (patch)
treec9bc243d6ba413fb1d201f8f3b15be019083737a /security/gnome-keyring
parent04e9657a0cbc0dc0aa05cbdf470f3404aaf44eac (diff)
downloadmarcuscom-ports-81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f.tar
marcuscom-ports-81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f.tar.gz
marcuscom-ports-81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f.tar.bz2
marcuscom-ports-81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f.tar.lz
marcuscom-ports-81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f.tar.xz
marcuscom-ports-81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f.tar.zst
marcuscom-ports-81bd189eb0bbc6260ddf2c673c1f5c265de4cc5f.zip
Fix the build on FreeBSD < 7-CURRENT.
Reported by: mezz git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9381 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'security/gnome-keyring')
-rw-r--r--security/gnome-keyring/files/patch-pam_gkr-pam-client.c11
-rw-r--r--security/gnome-keyring/files/patch-pam_gkr-pam-module.c10
2 files changed, 13 insertions, 8 deletions
diff --git a/security/gnome-keyring/files/patch-pam_gkr-pam-client.c b/security/gnome-keyring/files/patch-pam_gkr-pam-client.c
index 2d4f5f87d..b3f17d2b3 100644
--- a/security/gnome-keyring/files/patch-pam_gkr-pam-client.c
+++ b/security/gnome-keyring/files/patch-pam_gkr-pam-client.c
@@ -1,14 +1,17 @@
---- pam/gkr-pam-client.c.orig 2007-08-12 16:42:30.000000000 -0400
-+++ pam/gkr-pam-client.c 2007-08-12 16:43:46.000000000 -0400
-@@ -29,6 +29,7 @@
+--- pam/gkr-pam-client.c.orig 2007-08-10 15:28:07.000000000 -0400
++++ pam/gkr-pam-client.c 2007-08-14 01:19:08.000000000 -0400
+@@ -29,6 +29,10 @@
#include <sys/types.h>
#include <sys/socket.h>
++#if defined(LOCAL_PEERCRED)
++#include <sys/param.h>
+#include <sys/ucred.h>
++#endif
#include <sys/un.h>
#include <sys/uio.h>
#include <sys/wait.h>
-@@ -90,7 +91,7 @@ check_peer_same_uid (int sock)
+@@ -90,7 +94,7 @@ check_peer_same_uid (int sock)
socklen_t xuc_len = sizeof (xuc);
if (getsockopt (sock, SOL_SOCKET, LOCAL_PEERCRED, &xuc, &xuc_len) == 0 &&
diff --git a/security/gnome-keyring/files/patch-pam_gkr-pam-module.c b/security/gnome-keyring/files/patch-pam_gkr-pam-module.c
index 8cb73bee8..e4afbb8f8 100644
--- a/security/gnome-keyring/files/patch-pam_gkr-pam-module.c
+++ b/security/gnome-keyring/files/patch-pam_gkr-pam-module.c
@@ -1,6 +1,6 @@
---- pam/gkr-pam-module.c.orig 2007-07-29 17:48:01.000000000 -0400
-+++ pam/gkr-pam-module.c 2007-07-29 17:50:09.000000000 -0400
-@@ -40,6 +40,8 @@
+--- pam/gkr-pam-module.c.orig 2007-08-10 15:46:32.000000000 -0400
++++ pam/gkr-pam-module.c 2007-08-14 01:19:49.000000000 -0400
+@@ -41,6 +41,8 @@
#include <sys/stat.h>
#include <sys/wait.h>
@@ -9,14 +9,16 @@
#include <assert.h>
#include <ctype.h>
#include <errno.h>
-@@ -72,8 +74,8 @@ enum {
+@@ -73,8 +75,10 @@ enum {
#define STDERR 2
/* Linux/BSD compatibility */
-#ifndef PAM_AUTHTOK_RECOVERY_ERR
-#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
+#ifndef PAM_AUTHTOK_RECOVER_ERR
++#ifdef PAM_AUTHTOK_RECOVERY_ERR
+#define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR
++#endif
#endif
/* -----------------------------------------------------------------------------