diff options
author | Kostis Sagonas <[email protected]> | 2016-05-04 12:57:54 +0200 |
---|---|---|
committer | Kostis Sagonas <[email protected]> | 2016-05-04 12:57:54 +0200 |
commit | 08e2649b739f911ac8cb4e18fc184108a49c9153 (patch) | |
tree | b5e55f2fbe340fd6d5647f93893ac4808004b644 | |
parent | a152a8a4e6df5fca0ca6fb0a62ac8fea41b99571 (diff) | |
download | otp-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.c | 1 | ||||
-rw-r--r-- | lib/os_mon/c_src/mod_syslog.c | 1 |
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> |