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/print/ghostscript9-base/files/patch-base_gdevplib.c
--- base/gdevplib.c.orig	2012-08-08 08:01:36 UTC
+++ base/gdevplib.c
@@ -153,7 +153,11 @@ void __aebi_memmove(void *dest, const vo
 
 #ifdef  TESTING_WITH_NO_BAND_DONOR
 
+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
 #include <malloc.h>
+#else
+#include <stdlib.h>
+#endif
 
 static void *my_buffer;