aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-11-22 16:11:22 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-11-22 16:11:22 +0200
commit86024b7f014c286daa68c3a0a223ce51f6e13dfa (patch)
treed91f270960dc6400b3b84cade8511d747034c92a /io.c
parent391c19511eda50484a80827694f4555127cca1c8 (diff)
downloadegawk-86024b7f014c286daa68c3a0a223ce51f6e13dfa.tar.gz
egawk-86024b7f014c286daa68c3a0a223ce51f6e13dfa.tar.bz2
egawk-86024b7f014c286daa68c3a0a223ce51f6e13dfa.zip
Clean up of awk.h.
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/io.c b/io.c
index 45725c5b..b5c25f54 100644
--- a/io.c
+++ b/io.c
@@ -42,6 +42,10 @@
#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
#endif
+#if ! defined(S_ISREG) && defined(S_IFREG)
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
+
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
@@ -128,6 +132,10 @@
#endif /* HAVE_SOCKETS */
+#ifndef HAVE_SETSID
+#define setsid() /* nothing */
+#endif /* HAVE_SETSID */
+
#if defined(GAWK_AIX)
#undef TANDEM /* AIX defines this in one of its header files */
#endif