rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / runtime / openjdk-23 / patches / src_java.desktop_share_native_libsplashscreen_libpng_pngpriv.h.patch
blob560c6540197d6b75f55c49f76a612a58637a8803
1 $NetBSD$
3 Fix build on SunOS in C99 mode.
5 --- a/src/java.desktop/share/native/libsplashscreen/libpng/pngpriv.h.orig 2019-01-08 12:44:59.000000000 +0000
6 +++ b/src/java.desktop/share/native/libsplashscreen/libpng/pngpriv.h
7 @@ -63,7 +63,7 @@
8 * Windows/Visual Studio) there is no effect; the OS specific tests below are
9 * still required (as of 2011-05-02.)
11 -#ifndef _POSIX_SOURCE
12 +#if (!defined(__sun) || (__STDC_VERSION__-0 < 199901L)) && !defined(_POSIX_SOURCE)
13 # define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
14 #endif