[NetworkManager/f13/master] Fix build error with getpid()

Daniel Williams dcbw at fedoraproject.org
Fri Apr 15 00:43:45 UTC 2011


commit 106db480998986673eeae90da6c3fc1b2724f722
Author: Dan Williams <dcbw at redhat.com>
Date:   Thu Apr 14 19:42:55 2011 -0500

    Fix build error with getpid()

 NetworkManager.spec        |    2 ++
 sys-types-for-getpid.patch |   11 +++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/NetworkManager.spec b/NetworkManager.spec
index 0d0d5c1..94d9dc7 100644
--- a/NetworkManager.spec
+++ b/NetworkManager.spec
@@ -26,6 +26,7 @@ Source2: NetworkManager.conf
 Patch1: nm-applet-internal-buildfixes.patch
 Patch2: explain-dns1-dns2.patch
 Patch3: nm-applet-no-notifications.patch
+Patch10: sys-types-for-getpid.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires(post): chkconfig
@@ -153,6 +154,7 @@ tar -xjf %{SOURCE1}
 %patch1 -p1 -b .buildfix
 %patch2 -p1 -b .explain-dns1-dns2
 %patch3 -p1 -b .no-notifications
+%patch10 -p1 -b .getpid
 
 %build
 
diff --git a/sys-types-for-getpid.patch b/sys-types-for-getpid.patch
new file mode 100644
index 0000000..fcb4d99
--- /dev/null
+++ b/sys-types-for-getpid.patch
@@ -0,0 +1,11 @@
+diff -up NetworkManager-0.8.3.999/src/main.c.foo NetworkManager-0.8.3.999/src/main.c
+--- NetworkManager-0.8.3.999/src/main.c.foo	2011-04-14 19:40:53.513262108 -0500
++++ NetworkManager-0.8.3.999/src/main.c	2011-04-14 19:41:04.977262052 -0500
+@@ -35,6 +35,7 @@
+ #include <glib/gi18n.h>
+ #include <gmodule.h>
+ #include <string.h>
++#include <sys/types.h>
+ 
+ #include "NetworkManager.h"
+ #include "NetworkManagerUtils.h"


More information about the scm-commits mailing list