Displaying 1 result from an estimated 1 matches for "a063c083".
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
...such a situation.
---
include/share/compat.h | 10 +++++++++-
src/libFLAC/metadata_iterators.c | 9 +++++++--
src/share/grabbag/file.c | 9 +++++++--
3 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/include/share/compat.h b/include/share/compat.h
index f3041655..a063c083 100644
--- a/include/share/compat.h
+++ b/include/share/compat.h
@@ -112,9 +112,13 @@
#include <sys/utime.h> /* for utime() */
#endif
#else
+#if _POSIX_C_SOURCE >= 200809L
+#include <fcntl.h>
+#else
#include <sys/types.h> /* some flavors of BSD (like OS X) require this to g...