On Sun, Aug 12, 2018 at 05:03:03PM +0200, Christian Weisgerber wrote:
> If I wanted to patch this, I'd add the _BSD_SOURCE line without
> replacing the _GNU_SOURCE one.

Upstreamed as follows:

Index: patches/patch-contrib_libtests_pngvalid_c
===================================================================
RCS file: patches/patch-contrib_libtests_pngvalid_c
diff -N patches/patch-contrib_libtests_pngvalid_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-contrib_libtests_pngvalid_c   13 Aug 2018 04:50:09 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Fix warning about implicit declaration of feenableexcept(3).
+Accepted upstream: https://sourceforge.net/p/png-mng/mailman/message/36390857/
+
+Index: contrib/libtests/pngvalid.c
+--- contrib/libtests/pngvalid.c.orig
++++ contrib/libtests/pngvalid.c
+@@ -21,6 +21,7 @@
+ #define _POSIX_SOURCE 1
+ #define _ISOC99_SOURCE 1 /* For floating point */
+ #define _GNU_SOURCE 1 /* For the floating point exception extension */
++#define _BSD_SOURCE 1 /* For the floating point exception extension */
+ 
+ #include <signal.h>
+ #include <stdio.h>

Reply via email to