From 87ff30b3f269d43c368b2bbf91ca134a960df860 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sun, 28 Jan 2024 21:50:36 +0100 Subject: [PATCH] Limit definition of XOPEN_SOURCE to Linux, where it's needed. The definition breaks the build on NetBSD where it hides symbols (to match what the standard says). Fixes #1230. --- src/exif-common.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/exif-common.cc b/src/exif-common.cc index ef80a6da..1fcfb6ac 100644 --- a/src/exif-common.cc +++ b/src/exif-common.cc @@ -19,7 +19,9 @@ #include +#ifdef __linux__ #define _XOPEN_SOURCE +#endif #include #include -- 2.20.1