aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-02-17 05:11:14 +0800
committerobrien <obrien@FreeBSD.org>1997-02-17 05:11:14 +0800
commitba3f8bf8edb336fa75128f231355c5d7be97171c (patch)
tree720589c55dc548a72874db3a19faa7b5d541f89e /archivers
parent6568109b3978da9048e0895fb9361e3c9a72aa22 (diff)
downloadfreebsd-ports-gnome-ba3f8bf8edb336fa75128f231355c5d7be97171c.tar.gz
freebsd-ports-gnome-ba3f8bf8edb336fa75128f231355c5d7be97171c.tar.zst
freebsd-ports-gnome-ba3f8bf8edb336fa75128f231355c5d7be97171c.zip
A quick purousal thru our port's patches directory shows a *WAY* over use of
__FreeBSD__. That said, add __OpenBSD__ and __NetBSD__ where approapiate.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/arc/files/patch-aa2
-rw-r--r--archivers/bzip/files/patch-ab2
-rw-r--r--archivers/unarj/files/patch-aa4
-rw-r--r--archivers/zoo/files/patch-aa6
4 files changed, 7 insertions, 7 deletions
diff --git a/archivers/arc/files/patch-aa b/archivers/arc/files/patch-aa
index 5d57698671a4..5b2f9b52c5c0 100644
--- a/archivers/arc/files/patch-aa
+++ b/archivers/arc/files/patch-aa
@@ -62,7 +62,7 @@
tm.tm_mday = date & 31;
tm.tm_mon = ((date >> 5) & 15) - 1;
tm.tm_year = (date >> 9) + 80;
-+ #if !defined(__FreeBSD__) && !defined(__OpenBSD__)
++ #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
tvp[0].tv_sec = tmclock(&tm);
+ #else
+ tvp[0].tv_sec = timelocal(&tm);
diff --git a/archivers/bzip/files/patch-ab b/archivers/bzip/files/patch-ab
index cb8349efe736..8a349de5f3e2 100644
--- a/archivers/bzip/files/patch-ab
+++ b/archivers/bzip/files/patch-ab
@@ -4,7 +4,7 @@
#if BZ_UNIX_32
#include <utime.h>
#include <unistd.h>
-+#ifndef __FreeBSD__ /* stdlib already included above */
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) /* stdlib already included above */
#include <malloc.h>
+#endif
#include <sys/stat.h>
diff --git a/archivers/unarj/files/patch-aa b/archivers/unarj/files/patch-aa
index 2676a6690716..ad08f8f8f0ba 100644
--- a/archivers/unarj/files/patch-aa
+++ b/archivers/unarj/files/patch-aa
@@ -31,7 +31,7 @@
! gettz(stamp) /* returns the offset from GMT in seconds */
! time_t stamp;
{
-+ #ifdef __FreeBSD__
++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ return -localtime(&stamp)->tm_gmtoff;
+ #else
#define NOONOFFSET 43200L
@@ -73,7 +73,7 @@
#endif
typedef unsigned char uchar; /* 8 bits or more */
-+ #ifndef __FreeBSD__
++ #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
typedef unsigned int uint; /* 16 - 32 bits or more */
typedef unsigned short ushort; /* 16 bits or more */
+ #endif
diff --git a/archivers/zoo/files/patch-aa b/archivers/zoo/files/patch-aa
index c11c21587df6..a86541950df0 100644
--- a/archivers/zoo/files/patch-aa
+++ b/archivers/zoo/files/patch-aa
@@ -17,7 +17,7 @@
! long gettz(t)
! long t;
{
-+ #ifdef __FreeBSD__
++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ return -localtime(&t)->tm_gmtoff;
+ #else
#define SEC_IN_DAY (24L * 60L * 60L)
@@ -54,7 +54,7 @@
/* Standard UNIX-specific file attribute routines */
#include "nixmode.i"
-+ #ifdef __FreeBSD__
++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <unistd.h>
+ #else
#ifndef SEEK_CUR
@@ -222,7 +222,7 @@
/* uchar should be 8 bits or more */
/* typedef unsigned char uchar; -- already in zoo.h */
-+ #ifndef __FreeBSD__
++ #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
typedef unsigned int uint; /* 16 bits or more */
#if !defined(__386BSD__) || !defined(_TYPES_H_)
typedef unsigned short ushort; /* 16 bits or more */