Limit definition of XOPEN_SOURCE to Linux, where it's needed.
authorThomas Klausner <wiz@gatalith.at>
Sun, 28 Jan 2024 20:50:36 +0000 (21:50 +0100)
committerColin Clark <colin.clark@cclark.uk>
Mon, 29 Jan 2024 15:18:49 +0000 (15:18 +0000)
The definition breaks the build on NetBSD where it hides symbols
(to match what the standard says).

Fixes #1230.

src/exif-common.cc

index ef80a6d..1fcfb6a 100644 (file)
@@ -19,7 +19,9 @@
 
 #include <config.h>
 
+#ifdef __linux__
 #define _XOPEN_SOURCE
+#endif
 
 #include <cmath>
 #include <cstdlib>