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
 		;;
rc/commit/curtis/.config/nvim/init.vim?id=1ba95e56cb599b5fca09b9f3503911f938c2cfb5&follow=1'>Generalize C-w neovim terminal mappingJune McEnroe 2017-07-04Remove tmuxJune McEnroe 2017-07-04Show terminal title in statuslineJune McEnroe 2017-07-04Add nvim terminal mappingsJune McEnroe 2017-06-29Add color to xxJune McEnroe 2017-06-28Set tmux copy-mode-vi bindings for TarmakJune McEnroe 2017-06-27Link Scala syntax fileJune McEnroe 2017-06-27Clean up top of trivial colorscheme fileJune McEnroe 2017-06-27Fix Scala syntax highlight linksJune McEnroe