smol_http

A simple http server supporting GET requests. Written in less than 400 lines of C.
Log | Files | Refs | README | LICENSE

commit b6948e0a751e985166c954854f2d4100e4f567c8
parent 36f1139c027f0e2fc04541c580b668c6bacb8e98
Author: Anton Kling <anton@kling.gg>
Date:   Sat,  5 Mar 2022 13:15:42 +0100

SerenityOS defines __serenity__ not __SerenityOS__

Diffstat:
Msmol_http.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/smol_http.c b/smol_http.c @@ -43,8 +43,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. expression; \ } -#define HAS_PLEDGE (__OpenBSD__ | __SerenityOS__) -#define HAS_UNVEIL (__OpenBSD__ | __SerenityOS__) +#define HAS_PLEDGE (__OpenBSD__ | __serenity__) +#define HAS_UNVEIL (__OpenBSD__ | __serenity__) #if HAS_PLEDGE #define PLEDGE(promise, exec) \