[hackers] [quark] Add some missing headers and interface visibility macro || Quentin Rameau
commit 3ff3e5ea6e1a3d85c6282a833a07424fcac3acc3
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Mar 1 15:18:20 2018 +0100
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Mon Mar 5 00:21:54 2018 +0100
Add some missing headers and interface visibility macro
strings.h for strncasecmp
time.h for strptime
diff --git a/LICENSE b/LICENSE
index 3f7cb9f..a468f28 100644
--- a/LICENSE
+++ b/LICENSE
_AT_@ -6,7 +6,7 @@ Copyright 2004 Ted Unangst <tedu_AT_openbsd.org>
Copyright 2004 Todd C. Miller <Todd.Miller_AT_courtesan.com>
Copyright 2008 Otto Moerbeek <otto_AT_drijf.net>
Copyright 2017 Hiltjo Posthuma <hiltjo_AT_codemadness.org>
-Copyright 2017 Quentin Rameau <quinq_AT_fifth.space>
+Copyright 2017-2018 Quentin Rameau <quinq_AT_fifth.space>
Copyright 2018 Josuah Demangeon <mail_AT_josuah.net>
Permission to use, copy, modify, and/or distribute this software for any
diff --git a/config.mk b/config.mk
index 4a29c83..0eb5f27 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -8,7 +8,7 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
# flags
-CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_BSD_SOURCE
+CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
CFLAGS = -std=c99 -pedantic -Wno-unused-variable -Wno-implicit-function-declaration -Wall -Os
LDFLAGS = -s
diff --git a/http.c b/http.c
index 0d758ad..9140cc7 100644
--- a/http.c
+++ b/http.c
_AT_@ -9,9 +9,11 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <time.h>
#include <unistd.h>
#include "config.h"
Received on Mon Mar 05 2018 - 00:32:00 CET
This archive was generated by hypermail 2.3.0
: Mon Mar 05 2018 - 00:36:33 CET