ports/net/lambdamoo/files/patch-config.h.in
Robert Clausecker f0c5bad08a net/lambdamoo: fix build on current FreeBSD, define LICENSE
- this has some seriously ancient autotools stuff in it
 - it doesn't even quite work these days

MFH:		2024Q2
2024-10-21 11:36:02 +02:00

40 lines
1.1 KiB
C

--- config.h.in.orig 1998-12-29 05:26:51 UTC
+++ config.h.in
@@ -94,9 +94,10 @@
#undef NDECL_FORK /* <unistd.h> */
#undef NDECL_WAITPID /* <sys/wait.h> */
-/* Some systems declare bzero() in <stdlib.h> instead of in <string.h>. */
+/* Some systems declare bzero() in <stdlib.h> or <strings.h> instead of in <string.h>. */
#undef BZERO_IN_STDLIB_H
+#undef BZERO_IN_STRINGS_H
/* Some header files are only present on certain kinds of UNIXes (e.g., BSD,
* System V, or POSIX). The following symbols are defined only if the named
@@ -163,7 +164,7 @@
* system provides the named functions.
*/
-#undef HAVE_CRYPT
+/* #undef HAVE_CRYPT */
#undef HAVE_MATHERR
#undef HAVE_MKFIFO
#undef HAVE_REMOVE
@@ -257,12 +258,16 @@
#if INT_MAX == 2147483647
typedef int int32;
typedef unsigned unsigned32;
+# ifndef INT32_MAX
# define INT32_MAX INT_MAX
+# endif
#else
# if LONG_MAX == 2147483647
typedef long int int32;
typedef unsigned long unsigned32;
+# ifndef INT32_MAX
# define INT32_MAX LONG_MAX
+# endif
# else
# error I cannot figure out how to express a 32-bit integer on your machine.
# endif