summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compat.h3
-rwxr-xr-xconfigure2
2 files changed, 2 insertions, 3 deletions
diff --git a/compat.h b/compat.h
index 9675320..320dfc9 100644
--- a/compat.h
+++ b/compat.h
@@ -28,9 +28,6 @@
 #include <stdint.h>
 #include <stdlib.h>
 
-// libcrypto defines these functions if libc doesn't.
-void explicit_bzero(void *b, size_t len);
-
 #ifndef SIGINFO
 #define SIGINFO SIGUSR2
 #endif
diff --git a/configure b/configure
index f007db3..ac95af6 100755
--- a/configure
+++ b/configure
@@ -45,6 +45,8 @@ case "$(uname)" in
 		defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
 		;;
 	(Darwin)
+		cflags -D__STDC_WANT_LIB_EXT1__=1
+		cflags "-D'explicit_bzero(b,l)=memset_s((b),(l),0,(l))'"
 		config libcrypto libtls
 		defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
 		;;
83b912f463461541eaa8a04badbb9c43b7943da2&follow=1'>Set process title to chosen gameJune McEnroe 2021-01-29Add pause to snakeJune McEnroe 2021-01-29Add menu to choose 2048 or snakeJune McEnroe 2021-01-29Actually wait for a non-direction keyJune McEnroe 2021-01-29Give the snake a tailJune McEnroe 2021-01-29Don't let the snake snap its own neckJune McEnroe