aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-06-01 11:28:15 -0400
committerArnold D. Robbins <arnold@skeeve.com>2016-06-01 11:28:15 -0400
commit88c6afdf1c83a7ea51225fbb173d910533c51bb0 (patch)
tree8a1d145018a67b9a7f78d2cfe74c618243137dcc
parentc74913824e580aa909f6e53346401d198314d6a6 (diff)
downloadegawk-88c6afdf1c83a7ea51225fbb173d910533c51bb0.tar.gz
egawk-88c6afdf1c83a7ea51225fbb173d910533c51bb0.tar.bz2
egawk-88c6afdf1c83a7ea51225fbb173d910533c51bb0.zip
Keep nonposix.h from bothering things on POSIX systems.
-rw-r--r--ChangeLog6
-rw-r--r--nonposix.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e2d8d2b..9c9d87bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-01 Arnold D. Robbins <arnold@skeeve.com>
+
+ * nonposix.h (getpgrp): Wrap declaration in ifdef so it doesn't
+ mess things up on POSIX systems (like Solaris). Thanks to
+ Nelson Beebe for the report.
+
2016-05-30 Arnold D. Robbins <arnold@skeeve.com>
* main.c (arg_assign): Fully bracket ifdefs around call
diff --git a/nonposix.h b/nonposix.h
index 3a0510b1..3aae512c 100644
--- a/nonposix.h
+++ b/nonposix.h
@@ -57,7 +57,9 @@ int unsetenv (const char *);
int setenv (const char *, const char *, int);
#endif /* __MINGW32__ */
+#if defined(VMS) || defined(__DJGPP__) || defined(__MINGW32__)
int getpgrp(void);
+#endif
#if defined(__DJGPP__) || defined(__MINGW32__)
int getppid(void);