HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/benchmarks/dbs/files/patch-src_scan.c
--- src/scan.c.orig	1997-07-11 00:54:12 UTC
+++ src/scan.c
@@ -49,6 +49,9 @@
  * $Author: yukio-m $
  *****************************************************************/
 
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #include<stdio.h>
 #include<stdlib.h>
 
@@ -58,7 +61,8 @@
 #include <string.h>
 #endif
 
-#if !defined(bsdi)
+#if (!defined(BSD) || (BSD < 199306))
+#error BSD
 #include <malloc.h>
 #endif