1
30kfreebsd.diff by Aurelien Jarno <aurel32@debian.org>
3
Defines GNU macros not only for Linux but also for any system
4
with 'gnu' substring in OS name. Fixes FTBFS on GNU/kfreebsd.
6
Index: erlang/erts/configure.in
7
=====================================================================
8
--- erlang.orig/erts/configure.in
9
+++ erlang/erts/configure.in
12
dnl NOTE: CPPFLAGS will be included in CFLAGS at the end
14
- linux*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE";;
15
+ linux*|*gnu*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE";;
21
enable_child_waiter_thread=yes
25
AC_DEFINE(USE_RECURSIVE_MALLOC_MUTEX,[1],
26
[Define if malloc should use a recursive mutex])
27
# -D_GNU_SOURCE already defined in CFLAGS remove it