diff options
author | Lukas Larsson <[email protected]> | 2016-02-26 11:00:33 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-02-29 18:21:00 +0100 |
commit | 74932408e62100dec7ece2365ee221e68a809de7 (patch) | |
tree | 13574a7d5421c93d09727865d688f8169384620d /erts/etc | |
parent | 99eea0aa0d20814aca57a510d0e7484b253f4451 (diff) | |
download | otp-74932408e62100dec7ece2365ee221e68a809de7.tar.gz otp-74932408e62100dec7ece2365ee221e68a809de7.tar.bz2 otp-74932408e62100dec7ece2365ee221e68a809de7.zip |
erts: Fix run_erl syslog prototypes for freebsd
Diffstat (limited to 'erts/etc')
-rw-r--r-- | erts/etc/unix/run_erl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c index 44efb975ba..ff9bbbafe2 100644 --- a/erts/etc/unix/run_erl.c +++ b/erts/etc/unix/run_erl.c @@ -41,7 +41,7 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif -#ifdef HAVE_WORKING_POSIX_OPENPT +#if defined(HAVE_WORKING_POSIX_OPENPT) && !(defined(__FreeBSD__) || defined(__DragonFly__)) #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 600 #endif @@ -64,10 +64,6 @@ #include <termios.h> #include <time.h> -#ifdef __ANDROID__ -# include <termios.h> -#endif - #ifdef HAVE_SYSLOG_H # include <syslog.h> #endif @@ -77,6 +73,9 @@ #ifdef HAVE_UTMP_H # include <utmp.h> #endif +#ifdef HAVE_LIBUTIL_H +# include <libutil.h> +#endif #ifdef HAVE_UTIL_H # include <util.h> #endif |