freebsd-ports/archivers/bzip/files/patch-ab
David E. O'Brien 02d1b3a10b A quick purousal thru our port's patches directory shows a *WAY* over use of
__FreeBSD__.

That said, add __OpenBSD__ and __NetBSD__ where approapiate.
1997-02-16 21:11:14 +00:00

13 lines
359 B
Plaintext

--- bzip.c.orig Fri Sep 27 12:33:18 1996
+++ bzip.c Fri Sep 27 12:35:48 1996
@@ -116,7 +116,9 @@
#if BZ_UNIX_32
#include <utime.h>
#include <unistd.h>
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) /* stdlib already included above */
#include <malloc.h>
+#endif
#include <sys/stat.h>
#include <sys/times.h>