From dbaa0f6be119a1e74e6139d240d77efcba43b504 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 2 Mar 2021 23:46:08 +0000 Subject: Fix building on Windows. --- win/inspircd_win32wrapper.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 1694691e9..49fc1c665 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -61,6 +61,11 @@ #define DllExport __declspec(dllimport) #endif +// File numbers for standard streams. +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 + /* Redirect main() through a different method in win32service.cpp, to intercept service startup */ #define ENTRYPOINT CoreExport int smain(int argc, char** argv) -- cgit v1.2.3