aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/c_src/mod_syslog.c
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2016-05-04 12:57:54 +0200
committerKostis Sagonas <[email protected]>2016-05-04 12:57:54 +0200
commit08e2649b739f911ac8cb4e18fc184108a49c9153 (patch)
treeb5e55f2fbe340fd6d5647f93893ac4808004b644 /lib/os_mon/c_src/mod_syslog.c
parenta152a8a4e6df5fca0ca6fb0a62ac8fea41b99571 (diff)
downloadotp-08e2649b739f911ac8cb4e18fc184108a49c9153.tar.gz
otp-08e2649b739f911ac8cb4e18fc184108a49c9153.tar.bz2
otp-08e2649b739f911ac8cb4e18fc184108a49c9153.zip
Fix compilation on SUN/SPARC by including <stdlib.h>
The combination of the use of the exit() function without including <stdlib.h> together with the option -Werror=implicit-function-declaration causes the compilation (and the 'make') to fail on SUN/SPARC with gcc 4.9.3.
Diffstat (limited to 'lib/os_mon/c_src/mod_syslog.c')
-rw-r--r--lib/os_mon/c_src/mod_syslog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/os_mon/c_src/mod_syslog.c b/lib/os_mon/c_src/mod_syslog.c
index e287ac9090..720b52916e 100644
--- a/lib/os_mon/c_src/mod_syslog.c
+++ b/lib/os_mon/c_src/mod_syslog.c
@@ -18,6 +18,7 @@
* %CopyrightEnd%
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>