Blame patches/smallbasic_pre.local.patch

Lucio Andrés Illanes Albornoz d557c3
diff -ru SmallBASIC.orig/configure.ac SmallBASIC/configure.ac
Lucio Andrés Illanes Albornoz d557c3
--- SmallBASIC.orig/configure.ac	2018-08-18 15:58:59.300508539 +0200
Lucio Andrés Illanes Albornoz d557c3
+++ SmallBASIC/configure.ac	2018-08-18 16:04:05.394415143 +0200
Lucio Andrés Illanes Albornoz d557c3
@@ -117,7 +117,7 @@
Lucio Andrés Illanes Albornoz d557c3
 
Lucio Andrés Illanes Albornoz d557c3
    if test "${have_pcre}" = "yes" ; then
Lucio Andrés Illanes Albornoz d557c3
      AC_DEFINE(USE_PCRE, 1, [match.c used with libpcre.])
Lucio Andrés Illanes Albornoz d557c3
-     PACKAGE_LIBS="${PACKAGE_LIBS} `pcre-config --libs`"
Lucio Andrés Illanes Albornoz d557c3
+     PACKAGE_LIBS="${PACKAGE_LIBS} ${PCRE_LIBS}"
Lucio Andrés Illanes Albornoz d557c3
    fi
Lucio Andrés Illanes Albornoz d557c3
 }
Lucio Andrés Illanes Albornoz d557c3
 
Lucio Andrés Illanes Albornoz d557c3
@@ -325,7 +325,7 @@
Lucio Andrés Illanes Albornoz d557c3
 checkProfiling
Lucio Andrés Illanes Albornoz d557c3
 checkForWindows
Lucio Andrés Illanes Albornoz d557c3
 
Lucio Andrés Illanes Albornoz d557c3
-CFLAGS="${CFLAGS} -std=gnu11"
Lucio Andrés Illanes Albornoz d557c3
+CFLAGS="${CFLAGS} -std=gnu99"
Lucio Andrés Illanes Albornoz d557c3
 PACKAGE_CFLAGS="${PACKAGE_CFLAGS} -Wall -Wno-unused-result"
Lucio Andrés Illanes Albornoz d557c3
 BUILD_DATE=`date +"%a, %d %b %Y"`
Lucio Andrés Illanes Albornoz d557c3
 AC_DEFINE_UNQUOTED([BUILD_DATE],["$BUILD_DATE"],[Build date])
Lucio Andrés Illanes Albornoz d557c3
diff -ru SmallBASIC.orig/src/platform/console/main.cpp SmallBASIC/src/platform/console/main.cpp
Lucio Andrés Illanes Albornoz d557c3
--- SmallBASIC.orig/src/platform/console/main.cpp	2018-08-18 15:58:59.324509172 +0200
Lucio Andrés Illanes Albornoz d557c3
+++ SmallBASIC/src/platform/console/main.cpp	2018-08-18 16:04:21.506628434 +0200
Lucio Andrés Illanes Albornoz d557c3
@@ -332,7 +332,7 @@
Lucio Andrés Illanes Albornoz d557c3
   return gsb_last_error ? gsb_last_line : 0;
Lucio Andrés Illanes Albornoz d557c3
 }
Lucio Andrés Illanes Albornoz d557c3
 
Lucio Andrés Illanes Albornoz d557c3
-#if defined(__GNUC__) && !defined(__MACH__) && !defined(_Win32)
Lucio Andrés Illanes Albornoz d557c3
+#if defined(__GLIBC__) && !defined(__MACH__) && !defined(_Win32)
Lucio Andrés Illanes Albornoz d557c3
 // for analysing excessive malloc calls using kdbg
Lucio Andrés Illanes Albornoz d557c3
 extern "C" void *__libc_malloc(size_t size);
Lucio Andrés Illanes Albornoz d557c3
 void *malloc(size_t size) {