ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / web / firefox / patches / patch-media_libpng_pngpriv.h.patch
blob915df4774bb737a133be156457670c26c6ffd32b
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
7 @@ -36,8 +36,10 @@
8 * still required (as of 2011-05-02.)
9 */
10 #ifndef _POSIX_SOURCE
11 +#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
12 # define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
13 #endif
14 +#endif
16 #ifndef PNG_VERSION_INFO_ONLY
17 /* Standard library headers not required by png.h: */