]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log: Add more stdio_unlocked macros
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 11 Aug 2020 12:15:52 +0000 (08:15 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Sep 2020 05:10:48 +0000 (07:10 +0200)
This commit adds additional macros for interfaces in stdio_unlocked
according to their local availability.

src/suricata-common.h

index 4a6873cdf4355f5e161cecb4bcc4c482dbecb55b..a187730138d42727eb46dee946b0e4ecac00e58e 100644 (file)
@@ -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;