summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg>2013-01-11 13:27:53 +0000
committerjoerg <joerg>2013-01-11 13:27:53 +0000
commit5fbc53e78f692f2f9ad818884ad7f008203b52d7 (patch)
treedf03c007e24ad2de6998655474538330e1045d02 /graphics
parent7b0142519602c8a58ea41b001cd640ec38d1d9b6 (diff)
downloadpkgsrc-5fbc53e78f692f2f9ad818884ad7f008203b52d7.tar.gz
Fix build on NetBSD when using *at.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/optipng/distinfo3
-rw-r--r--graphics/optipng/patches/patch-src_optipng_osys.c18
2 files changed, 20 insertions, 1 deletions
diff --git a/graphics/optipng/distinfo b/graphics/optipng/distinfo
index 872b5b80b68..f8e9c1f6e4b 100644
--- a/graphics/optipng/distinfo
+++ b/graphics/optipng/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.24 2012/11/18 13:32:16 adam Exp $
+$NetBSD: distinfo,v 1.25 2013/01/11 13:27:53 joerg Exp $
SHA1 (optipng-0.7.4.tar.gz) = dcde17501cfb7a425b6cc23cfed482bbfd4867bb
RMD160 (optipng-0.7.4.tar.gz) = 9541cb721fd9d914679df1ca5af1be465204dc78
Size (optipng-0.7.4.tar.gz) = 1613916 bytes
+SHA1 (patch-src_optipng_osys.c) = 8d981b1b9a86593877d89611815826dcd9499d92
diff --git a/graphics/optipng/patches/patch-src_optipng_osys.c b/graphics/optipng/patches/patch-src_optipng_osys.c
new file mode 100644
index 00000000000..170f5561b25
--- /dev/null
+++ b/graphics/optipng/patches/patch-src_optipng_osys.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_optipng_osys.c,v 1.1 2013/01/11 13:27:53 joerg Exp $
+
+--- src/optipng/osys.c.orig 2013-01-11 01:14:19.000000000 +0000
++++ src/optipng/osys.c
+@@ -514,8 +514,13 @@ osys_copy_attr(const char *src_path, con
+ {
+ struct timespec times[2];
+
++#ifdef __NetBSD__
++ times[0] = sbuf.st_atimespec;
++ times[1] = sbuf.st_mtimespec;
++#else
+ times[0] = sbuf.st_atim;
+ times[1] = sbuf.st_mtim;
++#endif
+ if (utimensat(AT_FDCWD, dest_path, times, 0) != 0)
+ return -1;
+ }