X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funistd.in.h;h=d8276b1e1885fbb36a5e45d382963ff341ba91c4;hb=38db1b35bf51a7a738f27d2660a9fdd3b46447be;hp=52db71c0ff4bb2c49483dfbd5491d062db1faaf4;hpb=d1ed8a817f5d07d4013cfa0988ee2da8b2937db6;p=gnulib.git diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 52db71c0f..d8276b1e1 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -29,7 +29,7 @@ #ifndef _GL_UNISTD_H #define _GL_UNISTD_H -/* mingw doesn't define the SEEK_* macros in . */ +/* mingw doesn't define the SEEK_* or *_FILENO macros in . */ #if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) # include #endif @@ -87,6 +87,17 @@ /* The definition of GL_LINK_WARNING is copied here. */ +/* OS/2 EMX lacks these macros. */ +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif + /* Declare overridden functions. */ #ifdef __cplusplus