libggz: Fix implicit function declarations

This commit is contained in:
Ryan Carsten Schmidt
2024-07-24 01:58:21 -05:00
parent 36dea094b8
commit ea9b882bc5
2 changed files with 36 additions and 4 deletions
+7 -4
View File
@@ -5,8 +5,11 @@ PortSystem 1.0
name libggz
version 0.0.14.1
revision 5
checksums rmd160 5136aba62a4e988d97451b00193c10189f7265f2 \
sha256 54301052a327f2ff3f2d684c5b1d7920e8601e13f4f8d5f1d170e5a7c9585e85 \
size 477382
categories games
platforms darwin
maintainers nomaintainer
license GPL-2+ LGPL-2.1+
description The GGZ Gaming Zone - Base Library.
@@ -14,12 +17,12 @@ long_description ${description}
homepage http://www.ggzgamingzone.org/
master_sites http://ftp.belnet.be/packages/ggzgamingzone/ggz/${version}/ \
http://mirrors.ibiblio.org/pub/mirrors/ggzgamingzone/ggz/${version}/
checksums md5 603739504648833779aa13b0327a1c3d \
sha1 8a602e60606c89fd13ad93bb84a8be466fd457ef \
rmd160 5136aba62a4e988d97451b00193c10189f7265f2
depends_lib port:libgcrypt \
path:lib/libssl.dylib:openssl
patchfiles implicit.patch
livecheck.type regex
livecheck.url http://ftp.belnet.be/packages/ggzgamingzone/ggz/
livecheck.regex ">(\\d+(?:\\.\\d+)*)"
+29
View File
@@ -0,0 +1,29 @@
Fix:
error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
error: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
--- configure.orig 2008-02-16 15:13:13.000000000 -0600
+++ configure 2024-07-24 01:49:25.000000000 -0500
@@ -20284,8 +20284,10 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+#include <stdio.h>
+#include <string.h>
int
-main ()
+main (void)
{
char *s1 = "foo", *s2 = "bar";
char s3[strlen(s1) + strlen(s2) + 1];
@@ -20704,8 +20704,9 @@
#include<sys/types.h>
#include<sys/un.h>
+#include <string.h>
int
-main ()
+main (void)
{
struct sockaddr_un su; int i = SUN_LEN(&su);
;