X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fsysfile.h;h=3f4a6949e67530ac7b98390035ea354120a7cac1;hb=7049bf113e6f1c9f87b67a82b41a2778a25961e2;hp=1a611271c3ffc1434cfca367f3becf834afc8ded;hpb=6883ee56ec887c2c48abe5b06b5e66aa74031910;p=chise%2Fxemacs-chise.git.1 diff --git a/src/sysfile.h b/src/sysfile.h index 1a61127..3f4a694 100644 --- a/src/sysfile.h +++ b/src/sysfile.h @@ -55,6 +55,12 @@ Boston, MA 02111-1307, USA. */ #include #endif +#ifndef STDERR_FILENO +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 +#endif + #ifndef O_RDONLY #define O_RDONLY 0 #endif @@ -116,6 +122,14 @@ Boston, MA 02111-1307, USA. */ #endif #endif +#ifndef O_NONBLOCK +#ifdef O_NDELAY +#define O_NONBLOCK O_NDELAY +#else +#define O_NONBLOCK 04000 +#endif +#endif + /* if system does not have symbolic links, it does not have lstat. In that case, use ordinary stat instead. */