]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Also Define _ATFILE_SOURCE 1920/head
authorW. Felix Handte <w@felixhandte.com>
Thu, 5 Dec 2019 17:02:35 +0000 (12:02 -0500)
committerW. Felix Handte <w@felixhandte.com>
Mon, 23 Dec 2019 18:24:28 +0000 (13:24 -0500)
programs/platform.h

index 5934e59cf12dbabf47ed3e6772aa34363a15ee6a..64ecd21fcdc4049cde5270eea0ed57823975a854 100644 (file)
@@ -109,6 +109,15 @@ extern "C" {
 #endif   /* PLATFORM_POSIX_VERSION */
 
 
+#if PLATFORM_POSIX_VERSION > 1
+   /* glibc < 2.26 may not expose struct timespec def without this.
+    * See issue #1920. */
+#  ifndef _ATFILE_SOURCE
+#    define _ATFILE_SOURCE
+#  endif
+#endif
+
+
 /*-*********************************************
 *  Detect if isatty() and fileno() are available
 ************************************************/