blob: 81049b958d2062fc2ab98545f8030981f17ee324 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
}
/***************************************************************************
|