mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
fpathconf: add _POSIX_PRIO_IO defintion
fix the /tset/rt.os/files/fpathconf/T.fpathconf{1}:
_POSIX_ASYNC_IO is not defined
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
9335f7f7e6
commit
117c28990a
+1
-1
@@ -97,7 +97,7 @@
|
||||
|
||||
#define _POSIX_SYNC_IO 1
|
||||
#undef _POSIX_ASYNC_IO
|
||||
#undef _POSIX_PRIO_IO
|
||||
#define _POSIX_PRIO_IO 1
|
||||
|
||||
#define _XOPEN_UNIX 1
|
||||
#define _XOPEN_VERSION 700L
|
||||
|
||||
@@ -137,7 +137,7 @@ long fpathconf(int fildes, int name)
|
||||
return _POSIX_MAX_INPUT;
|
||||
|
||||
case _PC_PRIO_IO:
|
||||
return -1;
|
||||
return _POSIX_PRIO_IO;
|
||||
|
||||
default:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user