quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 55d7f000cdf9d4683caff71aea4f9d0cc0d13729
parent f6f98c9e6404d72d77dd0a20550aa695b8e07dda
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 12 Feb 2018 20:29:51 +0100

add headers to make it compile under OpenBSD

- 'struct in6_addr' is defined in <netinet/in.h>
- 'AF_INET6' is defined in <sys/socket.h>

Diffstat:
MLICENSE | 1+
Mhttp.c | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -6,6 +6,7 @@ Copyright 2004 Ted Unangst <tedu@openbsd.org> Copyright 2004 Todd C. Miller <Todd.Miller@courtesan.com> Copyright 2017 Hiltjo Posthuma <hiltjo@codemadness.org> Copyright 2017 Quentin Rameau <quinq@fifth.space> +Copyright 2018 Josuah Demangeon <mail@josuah.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/http.c b/http.c @@ -3,11 +3,13 @@ #include <ctype.h> #include <errno.h> #include <limits.h> +#include <netinet/in.h> #include <regex.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <string.h> +#include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h>