Add missing includes

This commit is contained in:
Vitezslav Crhonek 2012-06-07 13:24:33 +02:00
parent 71c2893c0b
commit d95c4ac243
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
diff -up sblim-sfcb-1.3.14/cimXmlRequest.c.orig sblim-sfcb-1.3.14/cimXmlRequest.c
--- sblim-sfcb-1.3.14/cimXmlRequest.c.orig 2012-06-07 13:09:59.006978825 +0200
+++ sblim-sfcb-1.3.14/cimXmlRequest.c 2012-06-07 13:10:26.652133786 +0200
@@ -20,7 +20,8 @@
*
*/
-
+#include <sys/time.h>
+#include <sys/resource.h>
#include "cmpidt.h"
#include "cmpidtx.h"
diff -up sblim-sfcb-1.3.14/providerMgr.c.orig sblim-sfcb-1.3.14/providerMgr.c
--- sblim-sfcb-1.3.14/providerMgr.c.orig 2012-06-07 11:34:30.226930620 +0200
+++ sblim-sfcb-1.3.14/providerMgr.c 2012-06-07 13:03:34.140826089 +0200
@@ -24,6 +24,9 @@
#include <signal.h>
#include <time.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+
#include "cmpidt.h"
#include "providerRegister.h"
#include "providerMgr.h"

View File

@ -16,6 +16,7 @@ Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
Patch0: sblim-sfcb-1.3.7-close_logging.patch
Patch1: sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
Patch2: sblim-sfcb-1.3.10-CMGetCharPtr.patch
Patch3: sblim-sfcb-1.3.14-missing-includes.patch
Source1: sfcb.service
Provides: cim-server
Requires: cim-schema
@ -50,6 +51,7 @@ Programming Interface (CMPI).
%patch0 -p1 -b .close_logging
%patch1 -p1 -b .sfcbrepos-schema-location
%patch2 -p1 -b .CMGetCharPtr
%patch3 -p1 -b .missing-includes
%build
%configure --enable-debug --enable-uds --enable-ssl --enable-pam --enable-ipv6 CFLAGS="$CFLAGS -D_GNU_SOURCE"