diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-11-22 16:11:22 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-11-22 16:11:22 +0200 |
commit | 86024b7f014c286daa68c3a0a223ce51f6e13dfa (patch) | |
tree | d91f270960dc6400b3b84cade8511d747034c92a /io.c | |
parent | 391c19511eda50484a80827694f4555127cca1c8 (diff) | |
download | egawk-86024b7f014c286daa68c3a0a223ce51f6e13dfa.tar.gz egawk-86024b7f014c286daa68c3a0a223ce51f6e13dfa.tar.bz2 egawk-86024b7f014c286daa68c3a0a223ce51f6e13dfa.zip |
Clean up of awk.h.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |