Nothing in Tor has actually called assert() for some while.
@@ -1312,8 +1312,7 @@ AC_SUBST(CURVE25519_LIBS)
dnl Make sure to enable support for large off_t if available.
AC_SYS_LARGEFILE
-AC_CHECK_HEADERS([assert.h \
- errno.h \
+AC_CHECK_HEADERS([errno.h \
fcntl.h \
signal.h \
string.h \
@@ -83,7 +83,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <assert.h>
/* tor_addr_is_null() and maybe other functions rely on AF_UNSPEC being 0 to
* work correctly. Bail out here if we've found a platform where AF_UNSPEC
@@ -26,7 +26,6 @@
DISABLE_GCC_WARNING(redundant-decls)
#include <openssl/aes.h>
@@ -111,7 +111,6 @@ SecureZeroMemory(PVOID ptr, SIZE_T cnt)
#endif
#ifdef HAVE_SIGNAL_H
#include <signal.h>
@@ -12,7 +12,6 @@
#include "common/torint.h"
@@ -19,7 +19,6 @@
#include "ht.h"
@@ -11,7 +11,6 @@
#include "orconfig.h"
#include <stdarg.h>
// #include <stdio.h>
#define TORTLS_PRIVATE
#define TORTLS_OPENSSL_PRIVATE
#ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/
#include <winsock2.h>
#include <ws2tcpip.h>
@@ -45,7 +45,6 @@
#ifdef HAVE_NETINET_IN_H
@@ -51,9 +51,6 @@
#ifdef HAVE_ERRNO_H
#include <errno.h>
-#ifdef HAVE_ASSERT_H
-#endif
#ifdef HAVE_TIME_H
#include <time.h>
@@ -3331,4 +3328,3 @@ typedef enum was_router_added_t {
typedef struct tor_version_t tor_version_t;
#endif /* !defined(TOR_OR_H) */
-
@@ -33,7 +33,6 @@ ENABLE_GCC_WARNING(redundant-decls)
#if 0
#include "common/util.h"
@@ -14,7 +14,6 @@
#include <netinet/in.h>