fix compilation errors from missing limits header

This commit is contained in:
Mike Christie 2008-02-11 22:58:10 +00:00
parent 6270379f8e
commit 9136bac764
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,33 @@
diff -aurp open-isns-0.91/db-file.c open-isns-0.91.work/db-file.c
--- open-isns-0.91/db-file.c 2007-09-21 04:16:43.000000000 -0500
+++ open-isns-0.91.work/db-file.c 2008-02-11 16:54:47.000000000 -0600
@@ -11,6 +11,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
+#include <limits.h>
#include "isns.h"
#include "objects.h"
diff -aurp open-isns-0.91/isnsadm.c open-isns-0.91.work/isnsadm.c
--- open-isns-0.91/isnsadm.c 2007-09-22 15:27:24.000000000 -0500
+++ open-isns-0.91.work/isnsadm.c 2008-02-11 16:55:00.000000000 -0600
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
#include "isns.h"
#include "util.h"
diff -aurp open-isns-0.91/pki.c open-isns-0.91.work/pki.c
--- open-isns-0.91/pki.c 2007-09-22 14:59:30.000000000 -0500
+++ open-isns-0.91.work/pki.c 2008-02-11 16:54:07.000000000 -0600
@@ -10,6 +10,7 @@
#include <openssl/pem.h>
#include <openssl/err.h>
#include <fcntl.h>
+#include <limits.h>
#include "isns.h"
#include "security.h"
#include "util.h"

View File

@ -11,6 +11,7 @@ Source1: isnsd.init
Patch0: isns-utils-turn-default-dd-on-to-match-msft.patch
Patch1: isns-utils-update-isnsadm-man.patch
Patch2: isns-utils-fix-non-utf8-chars-in-copying.patch
Patch3: isns-utils-include-limits.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -28,6 +29,8 @@ Fibre Channel devices (using iFCP gateways) on a TCP/IP network.
%patch0 -p1 -b .turn-default-dd-on-to-match-msft
%patch1 -p1 -b .update-isnsadm-man
%patch2 -p1 -b .fix-non-utf8-chars-in-copying
%patch3 -p1 -b .isns-utils-include-limits
%build
if pkg-config openssl ; then