summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/irssi.c8
-rw-r--r--src/perl/perl-common.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
index d0bbbc99..b2a5e955 100644
--- a/src/fe-text/irssi.c
+++ b/src/fe-text/irssi.c
@@ -309,8 +309,12 @@ static void winsock_init(void)
}
#endif
-#ifdef HAVE_GC
-#include <gc/gc.h>
+#if defined (HAVE_GC_H) || defined (HAVE_GC_GC_H)
+#ifdef HAVE_GC_H
+# include <gc.h>
+#else
+# include <gc/gc.h>
+#endif
GMemVTable gc_mem_table = {
GC_malloc,
GC_realloc,
diff --git a/src/perl/perl-common.c b/src/perl/perl-common.c
index adb27cea..924a7f7c 100644
--- a/src/perl/perl-common.c
+++ b/src/perl/perl-common.c
@@ -43,7 +43,9 @@
#include "perl-core.h"
#include "perl-common.h"
-#ifdef HAVE_GC
+#ifdef HAVE_GC_H
+# include <gc.h>
+#elif defined (HAVE_GC_GC_H)
# include <gc/gc.h>
#endif