Fix more missing includes

This commit is contained in:
Daniel Williams 2007-08-30 23:04:56 +00:00
parent 8ac1f80ede
commit 1e0e6b259c
3 changed files with 23 additions and 9 deletions

View File

@ -1,7 +0,0 @@
--- NetworkManager-0.7.0/src/nm-hal-manager.c.signalh 2007-08-30 18:37:54.000000000 -0400
+++ NetworkManager-0.7.0/src/nm-hal-manager.c 2007-08-30 18:38:02.000000000 -0400
@@ -1,3 +1,4 @@
+#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <libhal.h>

View File

@ -0,0 +1,21 @@
--- NetworkManager-0.7.0/src/nm-netlink.c.missing-includes 2007-08-30 18:57:04.000000000 -0400
+++ NetworkManager-0.7.0/src/nm-netlink.c 2007-08-30 18:58:03.000000000 -0400
@@ -19,6 +19,11 @@
* (C) Copyright 2007 Red Hat, Inc.
*/
+#include <signal.h>
+#include <pthread.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#include "nm-netlink.h"
#include "nm-utils.h"
--- NetworkManager-0.7.0/src/nm-hal-manager.c.missing-includes 2007-08-30 14:45:49.000000000 -0400
+++ NetworkManager-0.7.0/src/nm-hal-manager.c 2007-08-30 18:56:39.000000000 -0400
@@ -1,3 +1,4 @@
+#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <libhal.h>

View File

@ -20,7 +20,7 @@ URL: http://www.gnome.org/projects/NetworkManager/
Source: %{name}-%{version}.%{snapshot}.tar.gz
Source1: nm-applet-%{version}.svn129.tar.gz
Patch1: NetworkManager-0.6.5-fixup-internal-applet-build.patch
Patch2: NetworkManager-0.7.0-include-signal-h.patch
Patch2: NetworkManager-0.7.0-missing-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
PreReq: chkconfig
@ -118,7 +118,7 @@ NetworkManager functionality from applications that use glib.
%prep
%setup -q
%patch2 -p1 -b .include-signal-h
%patch2 -p1 -b .missing-includes
# unpack the applet
tar -xzf %{SOURCE1}