aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc
diff options
context:
space:
mode:
authorRogier Velting <[email protected]>2018-10-05 15:59:26 +0200
committerRogier Velting <[email protected]>2018-10-05 16:02:39 +0200
commit262e23e937690e99ee304b96fe452376cab3012f (patch)
treefb8a7bba7f2fd6fb1058e7b5414dc65a43820b21 /erts/etc
parent0cb5456831a99e21f11e7331b4e2c56849827944 (diff)
downloadotp-262e23e937690e99ee304b96fe452376cab3012f.tar.gz
otp-262e23e937690e99ee304b96fe452376cab3012f.tar.bz2
otp-262e23e937690e99ee304b96fe452376cab3012f.zip
Fix run_erl.c so it compiles on Solaris
The checks in place to allow this file to compile on macOS and BSD can be extended to include Solaris.
Diffstat (limited to 'erts/etc')
-rw-r--r--erts/etc/unix/run_erl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c
index 725343d701..bfb3e1bd2c 100644
--- a/erts/etc/unix/run_erl.c
+++ b/erts/etc/unix/run_erl.c
@@ -43,10 +43,10 @@
#endif
#ifdef HAVE_WORKING_POSIX_OPENPT
# ifndef _XOPEN_SOURCE
- /* On OS X and BSD, we must leave _XOPEN_SOURCE undefined in order for
- * the prototype of vsyslog() to be included.
+ /* On OS X, BSD and Solaris, we must leave _XOPEN_SOURCE undefined in order
+ * for the prototype of vsyslog() to be included.
*/
-# if !(defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__))
+# if !(defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__sun))
# define _XOPEN_SOURCE 600
# endif
# endif