You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
libggz: Fix implicit function declarations
This commit is contained in:
@@ -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+)*)"
|
||||
|
||||
@@ -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);
|
||||
;
|
||||
Reference in New Issue
Block a user