opnsense-ports/benchmarks/dbs/files/patch-src_dbsc.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

22 lines
394 B
C

--- src/dbsc.c-- Mon Jun 8 00:23:35 1998
+++ src/dbsc.c Sat Aug 1 19:29:49 1998
@@ -51,6 +51,10 @@
#define DBSC
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -69,7 +73,7 @@
#include <arpa/inet.h>
#include <errno.h>
-#if !defined(bsdi)
+#if (!defined(BSD) || (BSD < 199306))
#include <malloc.h>
#endif