diff options
Diffstat (limited to 'pkgtools/packagekit/patches/patch-af')
-rw-r--r-- | pkgtools/packagekit/patches/patch-af | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgtools/packagekit/patches/patch-af b/pkgtools/packagekit/patches/patch-af new file mode 100644 index 00000000000..81049b958d2 --- /dev/null +++ b/pkgtools/packagekit/patches/patch-af @@ -0,0 +1,25 @@ +$NetBSD: patch-af,v 1.1.1.1 2009/01/08 00:21:00 jmcneill Exp $ + +--- lib/packagekit-glib/pk-client.c.orig 2008-12-09 03:22:23.000000000 -0500 ++++ lib/packagekit-glib/pk-client.c +@@ -33,7 +33,9 @@ + + #include <string.h> + #include <sys/types.h> ++#ifdef __linux__ + #include <sys/prctl.h> ++#endif + #ifdef HAVE_UNISTD_H + #include <unistd.h> + #endif /* HAVE_UNISTD_H */ +@@ -4493,8 +4495,10 @@ pk_client_new (void) + __attribute__ ((constructor)) + void init() + { ++#ifdef __linux__ + /* this is a bandaid */ + prctl (PR_SET_DUMPABLE, 0); ++#endif + } + + /*************************************************************************** |