Преглед на файлове

fix building of gup under Linux and Solaris

Ralf S. Engelschall преди 24 години
родител
ревизия
32315cb662
променени са 2 файла, в които са добавени 22 реда и са изтрити 0 реда
  1. 19 0
      gup/gup-0.5.7.patch
  2. 3 0
      gup/gup.spec

+ 19 - 0
gup/gup-0.5.7.patch

@@ -0,0 +1,19 @@
+--- gup.h.orig	Sat Nov 24 20:23:54 2001
++++ gup.h	Sat Nov 24 20:23:44 2001
+@@ -13,6 +13,7 @@
+ #include <ctype.h>		/* isspace */
+ #include <errno.h>		/* Needed for errno */
+ #include <stdarg.h>
++#include <fcntl.h>
+ 
+ #include <sys/file.h>
+ #include <sys/stat.h>		/* umask */
+@@ -31,7 +32,7 @@
+ #define	MAX_LINE_SIZE		512
+ #define	MODEST_SIZE		128
+ 
+-#ifdef FILE_LOCK
++#ifdef USE_DOTLOCK
+ #define LOCK_SLEEP		10	/* time to sleep between lock attempts*/
+ #define MAX_LOCK_SLEEP_COUNT	10	/* maximum number of tries */
+ #endif

+ 3 - 0
gup/gup.spec

@@ -36,6 +36,7 @@ Release:      20011121.0
 
 #   list of sources
 Source0:      ftp://ftp.debian.org/debian/pool/main/g/gup/gup_%{version}.tar.gz
+Patch0:       gup-%{version}.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -49,12 +50,14 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n gup-%{version}
+    %patch -p0
 
 %build
     %{l_rpmtool} subst \
         's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;' \
         's;/var/lib/news;%{l_prefix}/var/gup;' \
         's;"news";"postmaster";' \
+        's;USE_FLOCK;USE_DOTLOCK;' \
         -- config.h
     %{l_make} %{l_mflags -O} \
         CC="%{l_cc}" \