summaryrefslogtreecommitdiff
path: root/net/cap
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-01-23 11:37:10 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-01-23 11:37:10 +0000
commite7af901b989e16fa75226163e31015265c413ad4 (patch)
tree3853e392cf6726e76d23c52bfed2fd60b1b749c1 /net/cap
parentRemove problematic USE_GCC=3.1 cause. This should fix the build on STABLE. (diff)
Make it at least compiling on -current again.
Still talking to Volker Stolz <stolz@i2.informatik.rwth-aachen.de> for the -STABLE version.
Notes
Notes: svn path=/head/; revision=73855
Diffstat (limited to 'net/cap')
-rw-r--r--net/cap/files/patch-lib-cap-ablog.c34
1 files changed, 31 insertions, 3 deletions
diff --git a/net/cap/files/patch-lib-cap-ablog.c b/net/cap/files/patch-lib-cap-ablog.c
index 88c1db654032..7a794fb79d67 100644
--- a/net/cap/files/patch-lib-cap-ablog.c
+++ b/net/cap/files/patch-lib-cap-ablog.c
@@ -1,6 +1,25 @@
---- lib/cap/ablog.c.foo Mon Nov 4 16:43:02 2002
-+++ lib/cap/ablog.c Mon Nov 4 16:43:11 2002
-@@ -91,7 +91,7 @@
+--- 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 @@
+ * 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;
++#else
++static FILE *lfp;
++static void lfp_construct (void) __attribute__((constructor));
++static void lfp_construct (void) { lfp = stderr; }
++#endif
+
+ #ifndef USEVPRINTF
+ /* Bletch - gotta do it because pyramids don't work the other way */
+@@ -91,7 +100,7 @@
#endif USEVPRINTF
int saveerr;
extern int errno;
@@ -9,3 +28,12 @@
#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 */
+