aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--lib/os_mon/c_src/ferrule.c1
-rw-r--r--lib/os_mon/c_src/mod_syslog.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/os_mon/c_src/ferrule.c b/lib/os_mon/c_src/ferrule.c
index 8c44e52aba..47f8a21270 100644
--- a/lib/os_mon/c_src/ferrule.c
+++ b/lib/os_mon/c_src/ferrule.c
@@ -18,6 +18,7 @@
* %CopyrightEnd%
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <stropts.h>
#include <poll.h>
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>