mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 11:20:04 -04:00
20 lines
610 B
Plaintext
20 lines
610 B
Plaintext
$NetBSD: patch-ac,v 1.3 2003/08/30 21:00:10 jtb Exp $
|
|
|
|
--- lib/src/RT0.c.orig 2003-08-19 19:52:54.000000000 +0100
|
|
+++ lib/src/RT0.c 2003-08-19 19:55:02.000000000 +0100
|
|
@@ -14,9 +14,13 @@
|
|
#define MAX_BACKTRACE_LEVELS 20 /* max number of backtraced procedure calls */
|
|
|
|
/* note: __config.h might set defines for gc.h, like GC_PTHREADS */
|
|
-#if defined(HAVE_LIBGC) && defined(HAVE_GC_GC_H)
|
|
+#if defined(HAVE_LIBGC)
|
|
# define USE_BOEHM_GC
|
|
+#if defined(HAVE_GC_GC_H)
|
|
# include <gc/gc.h>
|
|
+#elif defined(HAVE_GC_H)
|
|
+# include <gc.h>
|
|
+#endif
|
|
#else
|
|
# define GC_MALLOC malloc
|
|
# define GC_MALLOC_ATOMIC malloc
|