diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-01-31 10:22:48 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-01-31 10:22:48 +0000 |
commit | 0599d036d8d85882896ed3236927dc9197051b04 (patch) | |
tree | c66713c8e5fd2642796de23531de1986ff35e3b0 /graphics/potrace | |
parent | 93629dcd509f6c8d9f05da7a2da16b02be20d422 (diff) | |
download | pkgsrc-0599d036d8d85882896ed3236927dc9197051b04.tar.gz |
potrace: Set _XOPEN_SOURCE correctly.
Diffstat (limited to 'graphics/potrace')
-rw-r--r-- | graphics/potrace/distinfo | 5 | ||||
-rw-r--r-- | graphics/potrace/patches/patch-src_backend__eps.c | 16 | ||||
-rw-r--r-- | graphics/potrace/patches/patch-src_main.c | 16 | ||||
-rw-r--r-- | graphics/potrace/patches/patch-src_mkbitmap.c | 16 |
4 files changed, 52 insertions, 1 deletions
diff --git a/graphics/potrace/distinfo b/graphics/potrace/distinfo index 59c6d83b8f1..da625ad811d 100644 --- a/graphics/potrace/distinfo +++ b/graphics/potrace/distinfo @@ -1,6 +1,9 @@ -$NetBSD: distinfo,v 1.11 2017/02/27 12:30:47 wiz Exp $ +$NetBSD: distinfo,v 1.12 2018/01/31 10:22:48 jperkin Exp $ SHA1 (potrace-1.14.tar.gz) = c61dc9c37157aaf757cc6f5fa2806a3c83af74c4 RMD160 (potrace-1.14.tar.gz) = fdc2237616a83d2212054dcf1e5f44f3878fd8f4 SHA512 (potrace-1.14.tar.gz) = ade5e18adfbfccbc1298d0bd416fe3ef49ebe0284b81d43e0dd0040498d0ef6995e6ac9dac0a1eb5c251921bc97c32db3213dbe0ab40365d87f92013dcdc99b5 Size (potrace-1.14.tar.gz) = 649685 bytes +SHA1 (patch-src_backend__eps.c) = baacc3fdbac3bc1d63084f2e192b2c17e42621a9 +SHA1 (patch-src_main.c) = 90116a4478d81c72a42714cb4feb04938c6b151e +SHA1 (patch-src_mkbitmap.c) = 083afb4616146ede33a9bf79ab7f69d33af49030 diff --git a/graphics/potrace/patches/patch-src_backend__eps.c b/graphics/potrace/patches/patch-src_backend__eps.c new file mode 100644 index 00000000000..160c82a1402 --- /dev/null +++ b/graphics/potrace/patches/patch-src_backend__eps.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_backend__eps.c,v 1.1 2018/01/31 10:22:48 jperkin Exp $ + +Set _XOPEN_SOURCE correctly. + +--- src/backend_eps.c.orig 2017-02-19 04:39:08.000000000 +0000 ++++ src/backend_eps.c +@@ -8,7 +8,9 @@ + output. Postscript compression is optionally supplied via the + functions in flate.c. */ + ++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L) + #define _XOPEN_SOURCE 500 ++#endif + + #ifdef HAVE_CONFIG_H + #include <config.h> diff --git a/graphics/potrace/patches/patch-src_main.c b/graphics/potrace/patches/patch-src_main.c new file mode 100644 index 00000000000..f79aa773821 --- /dev/null +++ b/graphics/potrace/patches/patch-src_main.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_main.c,v 1.1 2018/01/31 10:22:48 jperkin Exp $ + +Set _XOPEN_SOURCE correctly. + +--- src/main.c.orig 2017-02-19 04:39:08.000000000 +0000 ++++ src/main.c +@@ -2,7 +2,9 @@ + This file is part of Potrace. It is free software and it is covered + by the GNU General Public License. See the file COPYING for details. */ + ++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L) + #define _XOPEN_SOURCE 500 ++#endif + + #ifdef HAVE_CONFIG_H + #include <config.h> diff --git a/graphics/potrace/patches/patch-src_mkbitmap.c b/graphics/potrace/patches/patch-src_mkbitmap.c new file mode 100644 index 00000000000..881309d2ac5 --- /dev/null +++ b/graphics/potrace/patches/patch-src_mkbitmap.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_mkbitmap.c,v 1.1 2018/01/31 10:22:48 jperkin Exp $ + +Set _XOPEN_SOURCE correctly. + +--- src/mkbitmap.c.orig 2017-02-19 04:39:08.000000000 +0000 ++++ src/mkbitmap.c +@@ -7,7 +7,9 @@ + filter (evening out background gradients), lowpass filter + (smoothing foreground details), interpolated scaling, inversion. */ + ++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L) + #define _XOPEN_SOURCE 500 ++#endif + + #ifdef HAVE_CONFIG_H + #include <config.h> |