--- configure.orig	2023-08-01 06:58:25
+++ configure	2023-08-01 07:04:20
@@ -3570,8 +3570,8 @@
   for (i = 0; i < 256; i++)
     if (XOR (islower (i), ISLOWER (i))
 	|| toupper (i) != TOUPPER (i))
-      exit(2);
-  exit (0);
+      return (2);
+  return (0);
 }
 _ACEOF
 rm -f conftest$ac_exeext
--- Makefile.in.orig	2023-08-01 07:05:40
+++ Makefile.in	2023-08-01 07:10:27
@@ -271,7 +271,7 @@
 	echo '#include <stdio.h>' >temp.c
 	echo 'int main(){printf(' >>temp.c
 	echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c
-	echo 'exit(0);}' >>temp.c
+	echo 'return (0);}' >>temp.c
 	$(BCC) -o temp temp.c
 	./temp >config.h
 	echo >>config.h
--- tool/lemon.c.orig	2005-04-24 08:43:22
+++ tool/lemon.c	2023-08-01 07:15:04
@@ -11,6 +11,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 #ifndef __WIN32__
 #   if defined(_WIN32) || defined(WIN32)
@@ -2710,7 +2711,6 @@ int modemask;
   char *pathlist;
   char *path,*cp;
   char c;
-  extern int access();
 
 #ifdef __WIN32__
   cp = strrchr(argv0,'\\');
