diff --git a/lib/roken/roken.h b/lib/roken/roken.h index d3b024fb2..dae98bd8a 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -101,4 +101,8 @@ void mini_inetd (int port); #define STDOUT_FILENO 1 #endif +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif + #endif /* __ROKEN_H__ */ diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index d3b024fb2..dae98bd8a 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -101,4 +101,8 @@ void mini_inetd (int port); #define STDOUT_FILENO 1 #endif +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif + #endif /* __ROKEN_H__ */