mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Make it at least compiling on -current again.
Still talking to Volker Stolz <stolz@i2.informatik.rwth-aachen.de> for the -STABLE version.
This commit is contained in:
parent
6b7e534915
commit
e7af901b98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73855
1 changed files with 31 additions and 3 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue