From 9ce6c6c0cdc25dcf4aad08d6222fe7da2fab9df6 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 7 Jan 2024 10:12:42 +0100 Subject: [PATCH] try to get ftruncate enabled on FreeBSD with _XOPEN_SOURCE 500 --- libgphoto2/gphoto2-file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libgphoto2/gphoto2-file.c b/libgphoto2/gphoto2-file.c index e5fe909bc..40033b94d 100644 --- a/libgphoto2/gphoto2-file.c +++ b/libgphoto2/gphoto2-file.c @@ -27,6 +27,7 @@ #define _POSIX_SOURCE #define _DEFAULT_SOURCE #define _DARWIN_C_SOURCE +#define _XOPEN_SOURCE 500 #include "config.h" #include