From: Jeff Lucovsky Date: Tue, 11 Aug 2020 12:15:52 +0000 (-0400) Subject: log: Add more stdio_unlocked macros X-Git-Tag: suricata-6.0.0-rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c91e143525a915bfc1a2698df45b9ed1b6d60bb;p=thirdparty%2Fsuricata.git log: Add more stdio_unlocked macros This commit adds additional macros for interfaces in stdio_unlocked according to their local availability. --- diff --git a/src/suricata-common.h b/src/suricata-common.h index 4a6873cdf4..a187730138 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -528,8 +528,14 @@ char *strptime(const char * __restrict, const char * __restrict, struct tm * __r #ifndef HAVE_FWRITE_UNLOCKED #define SCFwriteUnlocked fwrite +#define SCFflushUnlocked fflush +#define SCClearErrUnlocked clearerr +#define SCFerrorUnlocked ferror #else #define SCFwriteUnlocked fwrite_unlocked +#define SCFflushUnlocked fflush_unlocked +#define SCClearErrUnlocked clearerr_unlocked +#define SCFerrorUnlocked ferror_unlocked #endif extern int coverage_unittests; extern int g_ut_modules;