Skip to content

Commit d6e1d6e

Browse files
authored
Merge pull request #2919 from dhoepfl/SR-13831
Partially fixes SR-13831: Warnings while building on Linux.
2 parents 868f15b + 3121d2f commit d6e1d6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
#include <linux/fs.h>
7878
#define AT_STATX_SYNC_AS_STAT 0x0000 /* - Do whatever stat() does */
7979
#endif //__GLIBC_PREREQ(2. 28)
80+
81+
#ifndef __NR_statx
82+
#include <sys/stat.h>
83+
#endif // not __NR_statx
84+
8085
#endif // TARGET_OS_LINUX
8186

8287
#include <stdlib.h>

0 commit comments

Comments
 (0)