don't rely on openssl to pull in string.h

This commit is contained in:
sthen 2014-05-23 12:23:05 +00:00
parent 794dfc55c4
commit a6eab9d26f
6 changed files with 58 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.14 2013/03/10 22:55:02 espie Exp $
# $OpenBSD: Makefile,v 1.15 2014/05/23 12:23:05 sthen Exp $
COMMENT = music system for hackathons
DISTNAME = hgd-0.5.3
REVISION = 1
CATEGORIES = audio net
HOMEPAGE = https://github.com/vext01/hgd/
REVISION = 0
MAINTAINER = Edd Barrett <edd@openbsd.org>

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-cfg_c,v 1.1 2014/05/23 12:23:05 sthen Exp $
--- cfg.c.orig Fri May 23 13:21:06 2014
+++ cfg.c Fri May 23 13:21:12 2014
@@ -20,6 +20,7 @@
#ifdef HAVE_LIBCONFIG /* entire file */
#include <limits.h>
+#include <string.h>
#include "cfg.h"
#include "hgd.h"

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-crypto_c,v 1.1 2014/05/23 12:23:05 sthen Exp $
--- crypto.c.orig Fri May 23 13:21:23 2014
+++ crypto.c Fri May 23 13:21:29 2014
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <openssl/ssl.h>
#include <openssl/evp.h>

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-net_c,v 1.1 2014/05/23 12:23:05 sthen Exp $
--- net.c.orig Fri May 23 13:20:41 2014
+++ net.c Fri May 23 13:20:49 2014
@@ -26,6 +26,7 @@
#include <errno.h>
#include <poll.h>
#include <stdio.h>
+#include <string.h>
#include <openssl/ssl.h>

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-user_c,v 1.1 2014/05/23 12:23:05 sthen Exp $
--- user.c.orig Fri May 23 13:21:39 2014
+++ user.c Fri May 23 13:21:45 2014
@@ -17,6 +17,7 @@
#include <sqlite3.h>
#include <openssl/rand.h>
+#include <string.h>
#include "user.h"
#include "hgd.h"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_ssl_h,v 1.1 2014/05/23 12:25:32 sthen Exp $
--- src/ssl.h.orig Fri May 23 13:24:22 2014
+++ src/ssl.h Fri May 23 13:24:43 2014
@@ -36,6 +36,8 @@
#include <config.h>
#endif
+#include <string.h>
+
#ifdef USE_POLARSSL
#include <polarssl/ssl.h>
#include <polarssl/version.h>