commit 55d7f000cdf9d4683caff71aea4f9d0cc0d13729
Author:     Josuah Demangeon <m...@josuah.net>
AuthorDate: Mon Feb 12 20:29:51 2018 +0100
Commit:     Laslo Hunhold <d...@frign.de>
CommitDate: Mon Feb 12 20:35:37 2018 +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>

diff --git a/LICENSE b/LICENSE
index b316f39..90778ad 100644
--- a/LICENSE
+++ b/LICENSE
@@ -6,6 +6,7 @@ Copyright 2004 Ted Unangst <t...@openbsd.org>
 Copyright 2004 Todd C. Miller <todd.mil...@courtesan.com>
 Copyright 2017 Hiltjo Posthuma <hil...@codemadness.org>
 Copyright 2017 Quentin Rameau <quinq@fifth.space>
+Copyright 2018 Josuah Demangeon <m...@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
index 6f2b7c2..13a77b6 100644
--- 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>

Reply via email to