--- librawstudio/rs-utils.c.orig	2021-06-03 05:43:01.000000000 +0800
+++ librawstudio/rs-utils.c	2022-08-25 04:07:21.000000000 +0800
@@ -17,7 +17,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
+#if !defined(__APPLE__)
 #define _XOPEN_SOURCE 500 /* strptime() and realpath() */
+#endif
 #include <rawstudio.h>
 #include <config.h>
 #include <glib.h>
