1 $NetBSD: patch-media_libpng_pngpriv.h,v 1.1 2018/06/28 14:04:10 ryoon Exp $
3 Fix _POSIX_SOURCE on SunOS.
5 --- a/media/libpng/pngpriv.h.orig 2018-06-05 19:47:32.000000000 +0000
6 +++ b/media/libpng/pngpriv.h
8 * still required (as of 2011-05-02.)
11 +#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
12 # define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
16 #ifndef PNG_VERSION_INFO_ONLY
17 /* Standard library headers not required by png.h: */