summaryrefslogtreecommitdiffhomepage
path: root/patches/smallbasic.local.patch
blob: c12262fb8a3da40988005fe27894f38a0812560c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- SmallBASIC/configure.ac.orig	2018-02-04 10:05:56.100000000 +0000
+++ SmallBASIC/configure.ac	2018-02-08 11:39:39.740000000 +0000
@@ -117,7 +117,7 @@
 
    if test "${have_pcre}" = "yes" ; then
      AC_DEFINE(USE_PCRE, 1, [match.c used with libpcre.])
-     PACKAGE_LIBS="${PACKAGE_LIBS} `pcre-config --libs`"
+     PACKAGE_LIBS="${PACKAGE_LIBS} ${PCRE_LIBS}"
    fi
 }
 
--- SmallBASIC/src/platform/console/main.c.orig	2018-02-04 10:05:56.108000000 +0000
+++ SmallBASIC/src/platform/console/main.c	2018-02-08 11:39:11.172000000 +0000
@@ -262,7 +262,7 @@
   return 1;
 }
 
-#if defined(__GNUC__) && !defined(__MACH__) && !defined(_Win32)
+#if defined(__GLIBC__) && !defined(__MACH__) && !defined(_Win32)
 // for analysing excessive malloc calls using kdbg
 extern void *__libc_malloc(size_t size);
 void *malloc(size_t size) {