summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch')
-rw-r--r--net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch b/net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch
new file mode 100644
index 000000000000..4d1bd67c6d34
--- /dev/null
+++ b/net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch
@@ -0,0 +1,19 @@
+--- a/bwbar.c
++++ b/bwbar.c
+@@ -30,6 +30,7 @@
+ #include <alloca.h>
+ #include <getopt.h>
+ #include <png.h>
++#include <zlib.h>
+
+ void skipline(FILE *f)
+ {
+@@ -79,7 +80,7 @@
+ if ( !info_ptr )
+ goto barf;
+
+- if ( setjmp(png_ptr->jmpbuf) ) {
++ if ( setjmp(png_jmpbuf(png_ptr)) ) {
+ status = 1;
+ goto barf; /* libpng abort */
+ }