Forráskód Böngészése

add patch for FreeBSD (and hopefully also Solaris)

Ralf S. Engelschall 24 éve
szülő
commit
523efec1ce
2 módosított fájl, 25 hozzáadás és 0 törlés
  1. 23 0
      ipaudit/ipaudit.patch
  2. 2 0
      ipaudit/ipaudit.spec

+ 23 - 0
ipaudit/ipaudit.patch

@@ -0,0 +1,23 @@
+--- src/hash.h.orig	Sun May 21 02:24:05 2000
++++ src/hash.h	Wed Apr 24 09:35:18 2002
+@@ -6,6 +6,7 @@
+ Type Definitions
+ ------------------------------------------------------------------------
+ */
++#define u_char unsigned char
+ typedef struct hlist_s {
+ 	struct hlist_s *next;
+ 	u_char *key;
+--- src/beta/pdate.c.orig	Mon Oct 30 15:05:55 2000
++++ src/beta/pdate.c	Wed Apr 24 09:39:39 2002
+@@ -13,9 +13,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <time.h>
+-#include <error.h>
+-
+-extern int errno;
++#include <errno.h>
+ 
+ /*
+ ------------------------------------------------------------------------

+ 2 - 0
ipaudit/ipaudit.spec

@@ -37,6 +37,7 @@ Release:      20020424
 
 #   list of sources
 Source0:      http://ipaudit.sourceforge.net/download/ipaudit-%{version}.tgz
+Patch0:       ipaudit.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -63,6 +64,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q 
+    %patch -p0
 
 %build
     %{l_shtool} subst \