caught this with a recent ports update.

renato, can you double-check this for me please? if ok, this will also 
have to be applied to the current wmaker (0.92) port soon-ish, as this 
recent libpng update made that unbuildable.

>From 5d1d41b453f0788765d4ca444d6efbe9f35cb573 Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Mon, 29 Mar 2010 11:30:47 +0200
Subject: [PATCH] Fix png 1.4+ builds

- png_check_sig was removed from png 1.4, use replacement fun, which is
  already present in 1.2.0 (cca. 2001)
---
 wrlib/load.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/wrlib/load.c b/wrlib/load.c
index 2d577ee..75200b5 100644
--- a/wrlib/load.c
+++ b/wrlib/load.c
@@ -330,7 +330,7 @@ static int identFile(char *path)
 
 #ifdef USE_PNG
        /* check for PNG */
-       if (png_check_sig(buffer, 8))
+       if (png_sig_cmp(buffer, 0, 8))
                return IM_PNG;
 #endif
 
-- 
1.7.0


-- 
[-]

mkdir /nonexistent
From 5d1d41b453f0788765d4ca444d6efbe9f35cb573 Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Mon, 29 Mar 2010 11:30:47 +0200
Subject: [PATCH] Fix png 1.4+ builds

- png_check_sig was removed from png 1.4, use replacement fun, which is
  already present in 1.2.0 (cca. 2001)
---
 wrlib/load.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/wrlib/load.c b/wrlib/load.c
index 2d577ee..75200b5 100644
--- a/wrlib/load.c
+++ b/wrlib/load.c
@@ -330,7 +330,7 @@ static int identFile(char *path)
 
 #ifdef USE_PNG
 	/* check for PNG */
-	if (png_check_sig(buffer, 8))
+	if (png_sig_cmp(buffer, 0, 8))
 		return IM_PNG;
 #endif
 
-- 
1.7.0

Reply via email to