commit 0c358faad3bab540f19c9ac94cfb00650d63205d parent 76335d18885f9bb4815b98abfb264231aa9ceccd Author: Frederic Cambus <fred@statdns.com> Date: Wed, 27 Jun 2018 22:35:29 +0200 Move conditional includes for 'pledge' and 'strtonum' in compat.h Diffstat:
A | compat/compat.h | | | 7 | +++++++ |
M | src/logswan.c | | | 9 | +-------- |
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/compat/compat.h b/compat/compat.h @@ -0,0 +1,7 @@ +#ifndef HAVE_PLEDGE +#include "pledge.h" +#endif + +#ifndef HAVE_STRTONUM +#include "strtonum.h" +#endif diff --git a/src/logswan.c b/src/logswan.c @@ -30,14 +30,7 @@ #include <sys/types.h> #include <time.h> -#ifndef HAVE_PLEDGE -#include "pledge.h" -#endif - -#ifndef HAVE_STRTONUM -#include "strtonum.h" -#endif - +#include "compat.h" #include "hll.h" #include <maxminddb.h>