aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-12-24 21:42:53 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-12-24 21:42:53 +0200
commit772793d99fbb08a03576c375b870ec36bb11cb8d (patch)
treedb64328b11b11dc89a60f49df8f6ed72dd06f890
parent1b21d20939d92024077639a2d828eb82fc1fe206 (diff)
downloadegawk-772793d99fbb08a03576c375b870ec36bb11cb8d.tar.gz
egawk-772793d99fbb08a03576c375b870ec36bb11cb8d.tar.bz2
egawk-772793d99fbb08a03576c375b870ec36bb11cb8d.zip
Fix getopt.c for Illumos.
-rw-r--r--ChangeLog6
-rw-r--r--getopt.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d1bf42d1..dced3f44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-12-24 Arnold D. Robbins <arnold@skeeve.com>
+
+ * getopt.h: Add `defined(__sun)' to list of system that do get to
+ include stdlib.h. Needed for Illumos. Thanks to
+ Richard Palo <richard.palo@free.fr> for the report.
+
2013-12-21 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Add --disable-extensions flag to control
diff --git a/getopt.c b/getopt.c
index fa258382..a45e30f4 100644
--- a/getopt.c
+++ b/getopt.c
@@ -57,7 +57,7 @@
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
-#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) || defined(__DJGPP__) || defined(__APPLE__) || defined(__MINGW32__)
+#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) || defined(__DJGPP__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__sun) /* Illumos */
/* Don't include stdlib.h for
* non-GNU C libraries
* non-Cygwin