diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-11-26 15:19:21 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:34 -0400 |
commit | e4a1c4fa737df693b83ffdb16396ffec13dc2c2a (patch) | |
tree | 26298c672e411f89e431c7376577717194b1f286 /src/lighttpd-angel.c | |
parent | 007843439a2654dd6dd5de9b6412f7fc5b9e2b22 (diff) | |
download | lighttpd-git-e4a1c4fa737df693b83ffdb16396ffec13dc2c2a.tar.gz |
[core] _WIN32 signal-related compat
Note: behavior under bash.exe might be different than under cmd.exe
Diffstat (limited to 'src/lighttpd-angel.c')
-rw-r--r-- | src/lighttpd-angel.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lighttpd-angel.c b/src/lighttpd-angel.c index 6452746c..599bbfc7 100644 --- a/src/lighttpd-angel.c +++ b/src/lighttpd-angel.c @@ -11,6 +11,15 @@ * it has to stay safe and small to be trustable */ +#ifdef _WIN32 +#include <stdio.h> +int main (void) { + fprintf(stderr, "lighttpd-angel is not implemented on Windows. " + "Prefer using Windows services.\n"); + return 1; +} +#else /* ! _WIN32 */ + #include <sys/wait.h> #include <stdio.h> @@ -104,3 +113,5 @@ int main (int argc, char **argv) return 0; } + +#endif /* ! _WIN32 */ |