Skip to content

Commit

Permalink
Fix potential compilation issue on illumos/Solaris
Browse files Browse the repository at this point in the history
Defining _ATFILE_SOURCE makes the file compile properly in presence of
a wider set of standard environment feature macros.
  • Loading branch information
tleedjarv committed Apr 29, 2024
1 parent dd2c38d commit b78c14c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/props_xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ CAMLprim value unison_xattr_updates_ctime(value unit)


#if defined(__Solaris__)
#ifndef _ATFILE_SOURCE
#define _ATFILE_SOURCE 1
#endif
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
Expand Down

0 comments on commit b78c14c

Please sign in to comment.