From: Vladimír Čunát Date: Tue, 18 Feb 2020 19:01:27 +0000 (+0100) Subject: contrib/ccan/asprintf: remove fortification guard X-Git-Tag: v5.1.0~44^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f4528f4896d522945fa07d06a9255f61683f51;p=thirdparty%2Fknot-resolver.git contrib/ccan/asprintf: remove fortification guard Perhaps it served some purpose in 28b230823, but it seems incorrect. --- diff --git a/contrib/ccan/asprintf/asprintf.c b/contrib/ccan/asprintf/asprintf.c index 9e66e1348..e9e02d7dd 100644 --- a/contrib/ccan/asprintf/asprintf.c +++ b/contrib/ccan/asprintf/asprintf.c @@ -16,7 +16,7 @@ char *PRINTF_FMT(1, 2) afmt(const char *fmt, ...) return ptr; } -#if !HAVE_ASPRINTF && !defined(__USE_FORTIFY_LEVEL) +#if !HAVE_ASPRINTF #include #include diff --git a/contrib/ccan/asprintf/asprintf.h b/contrib/ccan/asprintf/asprintf.h index 37da83e98..958e244b5 100644 --- a/contrib/ccan/asprintf/asprintf.h +++ b/contrib/ccan/asprintf/asprintf.h @@ -12,7 +12,7 @@ */ char *PRINTF_FMT(1, 2) afmt(const char *fmt, ...); -#if HAVE_ASPRINTF || defined(__USE_FORTIFY_LEVEL) +#if HAVE_ASPRINTF #include #else #include