diff options
Diffstat (limited to 'src/corelib/configure.json')
-rw-r--r-- | src/corelib/configure.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/corelib/configure.json b/src/corelib/configure.json index c8fede2b8f..8b503233a0 100644 --- a/src/corelib/configure.json +++ b/src/corelib/configure.json @@ -383,6 +383,19 @@ "main": "renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);" } }, + "statx": { + "label": "statx() in libc", + "type": "compile", + "test": { + "head": "#define _ATFILE_SOURCE 1", + "include": [ "sys/types.h", "sys/stat.h", "unistd.h", "fcntl.h" ], + "main": [ + "struct statx statxbuf;", + "unsigned int mask = STATX_BASIC_STATS;", + "return statx(AT_FDCWD, \"\", AT_STATX_SYNC_AS_STAT, mask, &statxbuf);" + ] + } + }, "syslog": { "label": "syslog", "type": "compile", @@ -585,6 +598,11 @@ "condition": "libs.slog2", "output": [ "privateFeature" ] }, + "statx": { + "label": "statx() in libc", + "condition": "config.linux && tests.statx", + "output": [ "privateFeature" ] + }, "syslog": { "label": "syslog", "autoDetect": false, |