cuneiform team mailing list archive
-
cuneiform team
-
Mailing list archive
-
Message #00253
FreeBSD port, take 2
Hello, guys,
Today one user complained that he couldn't build Cuneiform on FreeBSD
without dlmalloc, and even with dlmalloc installed he had to change the
paths by hand:
http://openocr.org/forum/viewtopic.php?f=3&t=2894
I saw Alex's message on the subject a while ago on this list:
https://lists.launchpad.net/launchpad-users/msg04124.html
>From what I was able to Google, the problem he (Alex) encountered is
already fixed in CURRENT. Furthermore, malloc.h is depreciated and one
should use the functions provided by stdlib.h instead.
Is someone able to test my patch on recent FreeBSD?
--
Sincerely yours,
Yury V. Zaytsev
=== modified file 'cuneiform_src/Kern/rbal/src/statsearchbl.cpp'
--- cuneiform_src/Kern/rbal/src/statsearchbl.cpp 2009-01-21 14:52:06 +0000
+++ cuneiform_src/Kern/rbal/src/statsearchbl.cpp 2009-02-19 14:42:19 +0000
@@ -67,8 +67,7 @@
#define malloc_usable_size(a) malloc_size(a)
#elif defined(__FreeBSD__)
-/* freebsd system malloc don`t work correctly with malloc_usable_size in c++ */
-#include <dlmalloc/malloc.h>
+/* stdlib.h already included */
#elif defined(WIN32)
#include<malloc.h>
=== modified file 'cuneiform_src/Kern/windummy.c'
--- cuneiform_src/Kern/windummy.c 2009-02-02 17:08:58 +0000
+++ cuneiform_src/Kern/windummy.c 2009-02-19 14:41:37 +0000
@@ -56,8 +56,7 @@
#include <malloc/malloc.h>
#define malloc_usable_size(a) malloc_size(a)
#elif defined(__FreeBSD__)
-/* freebsd system malloc don`t work correctly with malloc_usable_size in c++ */
-#include <dlmalloc/malloc.h>
+/* stdlib.h already included */
#else
#include <malloc.h>
#endif
Follow ups