26 lines
619 B
Plaintext
26 lines
619 B
Plaintext
$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
|
|
}
|
|
|
|
/***************************************************************************
|