lang/yap: Fix build. FreeBSD doesn't provide a struct mallinfo.

This commit is contained in:
Danilo Egea Gondolfo 2021-01-11 09:39:17 +00:00
parent a9fb0e5203
commit f285e61454
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561201

View file

@ -0,0 +1,11 @@
--- H/dlmalloc.h.orig 2021-01-10 12:55:22 UTC
+++ H/dlmalloc.h
@@ -493,7 +493,7 @@ extern Void_t* sbrk();
HAVE_USR_INCLUDE_MALLOC_H.
*/
-#if HAVE_MALLOC_H && !defined(_WIN32) && !defined(__NetBSD_Version__)
+#if HAVE_MALLOC_H && !defined(_WIN32) && !defined(__NetBSD_Version__) && !defined(__FreeBSD__)
#define HAVE_USR_INCLUDE_MALLOC_H 1
#endif