From 4fe2bd4f66d1ae82c0d2842837edafe9e6febfc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6gberg?= Date: Thu, 28 Feb 2019 11:44:36 +0100 Subject: erts: Fix erl_printf on Solaris flockfile(3c) and friends are hidden behind the __EXTENSIONS__ feature macro. --- erts/lib_src/common/erl_printf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'erts/lib_src/common') diff --git a/erts/lib_src/common/erl_printf.c b/erts/lib_src/common/erl_printf.c index 259ba8c81d..86f5da1c40 100644 --- a/erts/lib_src/common/erl_printf.c +++ b/erts/lib_src/common/erl_printf.c @@ -27,6 +27,11 @@ #include "config.h" #endif +#if defined(__sun) || defined(__sun__) + /* For flockfile(3c), putc_unlocked(3c), etc */ + #define __EXTENSIONS__ +#endif + #include #include "erl_errno.h" #ifdef __WIN32__ -- cgit v1.2.3