Fix more missing includes
This commit is contained in:
parent
8ac1f80ede
commit
1e0e6b259c
@ -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>
|
21
NetworkManager-0.7.0-missing-includes.patch
Normal file
21
NetworkManager-0.7.0-missing-includes.patch
Normal 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>
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user