From b78c14cdf529a2753ecc6e69cfc18cbfc2cb3400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B5ivo=20Leedj=C3=A4rv?= Date: Mon, 29 Apr 2024 12:28:50 +0200 Subject: [PATCH] Fix potential compilation issue on illumos/Solaris Defining _ATFILE_SOURCE makes the file compile properly in presence of a wider set of standard environment feature macros. --- src/props_xattr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/props_xattr.c b/src/props_xattr.c index d8324815e..25d23f25c 100644 --- a/src/props_xattr.c +++ b/src/props_xattr.c @@ -227,6 +227,9 @@ CAMLprim value unison_xattr_updates_ctime(value unit) #if defined(__Solaris__) +#ifndef _ATFILE_SOURCE +#define _ATFILE_SOURCE 1 +#endif #include #include #include