Skip to content

Commit 3121d2f

Browse files
committed
Fixes SR-13831: Warnings while building on Linux.
Fixed lstat warning by including <sys/stat.h>.
1 parent 66ed508 commit 3121d2f

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)