aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1996-12-23 01:01:12 +0800
committerimp <imp@FreeBSD.org>1996-12-23 01:01:12 +0800
commit2f2917a3762af799b96504af09470e1429d3fdd6 (patch)
treea55e546afe601e7d6d8df8d73871a4278cea0258
parent86ea1d92671e700e3ab54abba833e31befba534e (diff)
downloadfreebsd-ports-gnome-2f2917a3762af799b96504af09470e1429d3fdd6.tar.gz
freebsd-ports-gnome-2f2917a3762af799b96504af09470e1429d3fdd6.tar.zst
freebsd-ports-gnome-2f2917a3762af799b96504af09470e1429d3fdd6.zip
Apply minor patch from the OpenBSD folks to allow this to compile and
work on both FreeBSD and OpenBSD. Specifically, both FreeBSD and OpenBSD have the timelocal() function. In fact most unixes have this function, so I'm not sure what the best fix generically would be. This fix is no worse than the one that was there before, however. Submitted by: Niklas Hallqvist <niklas@filippa.appli.se> Obtained from: OpenBSD by way of Niklas
-rw-r--r--archivers/arc/files/patch-aa4
1 files changed, 2 insertions, 2 deletions
diff --git a/archivers/arc/files/patch-aa b/archivers/arc/files/patch-aa
index 68f082482c26..5d57698671a4 100644
--- a/archivers/arc/files/patch-aa
+++ b/archivers/arc/files/patch-aa
@@ -53,7 +53,7 @@
struct tm tm;
struct timeval tvp[2];
int utimes();
-+ #ifndef __FreeBSD__
++ #if !defined(__FreeSBD__) && !defined(__OpenBSD__)
long tmclock();
+ #endif
tm.tm_sec = (time & 31) * 2;
@@ -62,7 +62,7 @@
tm.tm_mday = date & 31;
tm.tm_mon = ((date >> 5) & 15) - 1;
tm.tm_year = (date >> 9) + 80;
-+ #ifndef __FreeBSD__
++ #if !defined(__FreeBSD__) && !defined(__OpenBSD__)
tvp[0].tv_sec = tmclock(&tm);
+ #else
+ tvp[0].tv_sec = timelocal(&tm);