aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-02-28 11:44:36 +0100
committerJohn Högberg <[email protected]>2019-02-28 11:56:41 +0100
commit4fe2bd4f66d1ae82c0d2842837edafe9e6febfc9 (patch)
treede2bc54f795752d09e8580f0a67020d84a163930
parent702e15e02335d4d15e8faddd45c9e9746e4d81a4 (diff)
downloadotp-4fe2bd4f66d1ae82c0d2842837edafe9e6febfc9.tar.gz
otp-4fe2bd4f66d1ae82c0d2842837edafe9e6febfc9.tar.bz2
otp-4fe2bd4f66d1ae82c0d2842837edafe9e6febfc9.zip
erts: Fix erl_printf on Solaris
flockfile(3c) and friends are hidden behind the __EXTENSIONS__ feature macro.
-rw-r--r--erts/lib_src/common/erl_printf.c5
1 files changed, 5 insertions, 0 deletions
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 <string.h>
#include "erl_errno.h"
#ifdef __WIN32__