From b4ce11041f318870479c9833c9c77464a502ccf5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 7 Feb 2020 17:36:52 +0000 Subject: [Minor] Remove some old unused crap --- CMakeLists.txt | 1 - config.h.in | 5 ++--- src/libutil/unix-std.h | 5 ----- src/rspamd.c | 6 ------ 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a41dd8abb..2df938644 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,7 +216,6 @@ CHECK_INCLUDE_FILES(string.h HAVE_STRING_H) CHECK_INCLUDE_FILES(strings.h HAVE_STRINGS_H) CHECK_INCLUDE_FILES(time.h HAVE_TIME_H) CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H) -CHECK_INCLUDE_FILES(sysexits.h HAVE_SYSEXITS_H) CHECK_INCLUDE_FILES(stdint.h HAVE_STDINT_H) CHECK_INCLUDE_FILES(inttypes.h HAVE_INTTYPES_H) CHECK_INCLUDE_FILES(stdbool.h HAVE_STDBOOL_H) diff --git a/config.h.in b/config.h.in index b3aefd980..2f4eef401 100644 --- a/config.h.in +++ b/config.h.in @@ -50,7 +50,6 @@ #cmakedefine HAVE_LIBUTIL_H 1 #cmakedefine HAVE_LOCALE_H 1 #cmakedefine HAVE_MACHINE_ENDIAN_H 1 -#cmakedefine HAVE_MATH_H 1 #cmakedefine HAVE_MAXPATHLEN 1 #cmakedefine HAVE_FMEMOPEN 1 #cmakedefine HAVE_MEMSET_S 1 @@ -106,7 +105,6 @@ #cmakedefine HAVE_STRINGS_H 1 #cmakedefine HAVE_STRING_H 1 #cmakedefine HAVE_STROPS_H 1 -#cmakedefine HAVE_SYSEXITS_H 1 #cmakedefine HAVE_SYSLOG_H 1 #cmakedefine HAVE_SYS_CDEFS_H 1 #cmakedefine HAVE_SYS_ENDIAN_H 1 @@ -145,7 +143,6 @@ #cmakedefine WITH_HIREDIS 1 #cmakedefine WITH_HYPERSCAN 1 #cmakedefine WITH_JEMALLOC 1 -#cmakedefine WITH_JUDY 1 #cmakedefine WITH_LUA 1 #cmakedefine WITH_LUAJIT 1 #cmakedefine WITH_PCRE2 1 @@ -430,5 +427,7 @@ extern uint64_t ottery_rand_uint64(void); #endif #define HAVE_OPENSSL 1 +#define HAVE_MATH_H 1 + #endif diff --git a/src/libutil/unix-std.h b/src/libutil/unix-std.h index 218a35ffa..0ce2442a2 100644 --- a/src/libutil/unix-std.h +++ b/src/libutil/unix-std.h @@ -47,11 +47,6 @@ #include #endif -/* sysexits */ -#ifdef HAVE_SYSEXITS_H -#include -#endif - /* strings */ #ifdef HAVE_STRINGS_H #include diff --git a/src/rspamd.c b/src/rspamd.c index f25884f6f..4c355788b 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -23,10 +23,6 @@ #include "cryptobox.h" #include "utlist.h" #include "unix-std.h" -/* sysexits */ -#ifdef HAVE_SYSEXITS_H -#include -#endif /* pwd and grp */ #ifdef HAVE_PWD_H #include @@ -59,8 +55,6 @@ #ifdef HAVE_OPENSSL #include #include -#include - #endif #include "sqlite3.h" -- cgit v1.2.3