incompatible implicit declaration of built-in function 'alloca'

This commit is contained in:
ajacoutot 2015-05-01 16:03:35 +00:00
parent dd0483d1c2
commit 78329c96bc
3 changed files with 17 additions and 4 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.13 2014/09/18 06:15:07 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.14 2015/05/01 16:03:35 ajacoutot Exp $
COMMENT= cryptographic library
DISTNAME= nettle-2.7.1
PKGNAME= lib${DISTNAME}
REVISION= 1
REVISION= 2
SHARED_LIBS += hogweed 1.1 # 2.3
SHARED_LIBS += nettle 1.2 # 4.5

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-pkcs1-decrypt_c,v 1.1 2015/05/01 16:03:35 ajacoutot Exp $
pkcs1-decrypt.c:46: warning: incompatible implicit declaration of built-in function 'alloca'
--- pkcs1-decrypt.c.orig Fri May 1 18:01:00 2015
+++ pkcs1-decrypt.c Fri May 1 18:01:31 2015
@@ -26,6 +26,7 @@
# include "config.h"
#endif
+#include <stdlib.h>
#include <string.h>
#include "pkcs1.h"

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.6 2013/05/07 06:39:41 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.7 2015/05/01 16:03:35 ajacoutot Exp $
@bin bin/nettle-hash
@bin bin/nettle-lfib-stream
@bin bin/pkcs1-conv
@ -58,6 +58,5 @@ lib/libhogweed.a
@lib lib/libhogweed.so.${LIBhogweed_VERSION}
lib/libnettle.a
@lib lib/libnettle.so.${LIBnettle_VERSION}
lib/pkgconfig/
lib/pkgconfig/hogweed.pc
lib/pkgconfig/nettle.pc