aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-03 20:11:14 +0800
committeredwin <edwin@FreeBSD.org>2003-02-03 20:11:14 +0800
commit022112af4191307b0ec55085cc76c678b3074363 (patch)
treea65d346f7c813b3cfac3f20552f9309c2902d2b9
parentbc8154a1fd73e49ca2f4533bccb4b4e43135f957 (diff)
downloadfreebsd-ports-gnome-022112af4191307b0ec55085cc76c678b3074363.tar.gz
freebsd-ports-gnome-022112af4191307b0ec55085cc76c678b3074363.tar.zst
freebsd-ports-gnome-022112af4191307b0ec55085cc76c678b3074363.zip
Added patches supplied by Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
regarding this port. Now builds on -current and 4.7! Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
-rw-r--r--net/cap/files/patch-lib-cap-ablog.c35
1 files changed, 15 insertions, 20 deletions
diff --git a/net/cap/files/patch-lib-cap-ablog.c b/net/cap/files/patch-lib-cap-ablog.c
index 7a794fb79d67..06613e45587c 100644
--- a/net/cap/files/patch-lib-cap-ablog.c
+++ b/net/cap/files/patch-lib-cap-ablog.c
@@ -1,16 +1,20 @@
---- lib/cap/ablog.c.orig Thu Jan 23 01:45:08 2003
-+++ lib/cap/ablog.c Thu Jan 23 03:14:28 2003
-@@ -66,8 +66,17 @@
+--- lib/cap/ablog.c.orig Mon Feb 3 01:16:00 2003
++++ lib/cap/ablog.c Mon Feb 3 03:48:59 2003
+@@ -24,6 +24,7 @@
+ *
+ */
+
++#include <osreldate.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+@@ -66,8 +67,13 @@
* This is something all machine should, but don't have :-)
*/
--static FILE *lfp = stderr;
-+#define GCC_VERSION (__GNUC__ * 10000 \
-+ + __GNUC_MINOR__ * 100 \
-+ + __GNUC_PATCHLEVEL__)
-
-+#if GCC_VERSION <= 30200
-+static FILE *lfp = stderr;
++#if defined(__FreeBSD__) && __FreeBSD_version < 470000
+ static FILE *lfp = stderr;
+-
+#else
+static FILE *lfp;
+static void lfp_construct (void) __attribute__((constructor));
@@ -19,7 +23,7 @@
#ifndef USEVPRINTF
/* Bletch - gotta do it because pyramids don't work the other way */
-@@ -91,7 +100,7 @@
+@@ -91,7 +97,7 @@
#endif USEVPRINTF
int saveerr;
extern int errno;
@@ -28,12 +32,3 @@
#ifndef __FreeBSD__
extern char *sys_errlist[];
#endif
-@@ -164,7 +173,7 @@
- static char *
- mytod()
- {
-- long tloc;
-+ time_t tloc;
- struct tm *tm, *localtime();
- static char buf[100]; /* should be large enough */
-