diff options
-rw-r--r-- | chat.h | 3 | ||||
-rwxr-xr-x | configure | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/chat.h b/chat.h index 1dfe119..fd8f81a 100644 --- a/chat.h +++ b/chat.h @@ -295,6 +295,3 @@ int getopt_config( int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longindex ); - -// Defined in libcrypto if missing from libc: -void explicit_bzero(void *b, size_t len); diff --git a/configure b/configure index b11679d..8282dc7 100755 --- a/configure +++ b/configure @@ -45,6 +45,12 @@ case "$(uname)" in config libcrypto libtls ncursesw 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 ncursesw + defvar OPENSSL_BIN openssl exec_prefix /bin/openssl + ;; (*) config libcrypto libtls ncursesw defvar OPENSSL_BIN openssl exec_prefix /bin/openssl |