]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: define _POSIX_ASYNCHRONOUS_IO
authorYaakov Selkowitz <yselkowi@redhat.com>
Wed, 25 Jul 2018 15:48:55 +0000 (10:48 -0500)
committerYaakov Selkowitz <yselkowi@redhat.com>
Wed, 25 Jul 2018 15:48:55 +0000 (10:48 -0500)
This feature is now available as of the recent AIO commits.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
newlib/libc/include/sys/features.h
winsup/cygwin/sysconf.cc

index 2900b332f55dafef8cc900d03559e3dcbc0dc689..f28dd071b8ff7a255b1c0a07373c57b8c82d3571 100644 (file)
@@ -425,7 +425,7 @@ extern "C" {
 #endif
 
 #define _POSIX_ADVISORY_INFO                   200809L
-/* #define _POSIX_ASYNCHRONOUS_IO                  -1 */
+#define _POSIX_ASYNCHRONOUS_IO                 200809L
 #define _POSIX_BARRIERS                                200809L
 #define _POSIX_CHOWN_RESTRICTED                             1
 #define _POSIX_CLOCK_SELECTION                 200809L
index ff98f57a3dded77e988bc1c92b45fb89061b24fa..753febca48122e765e777f92986cf5a99eef9261 100644 (file)
@@ -528,7 +528,7 @@ static struct
   {cons, {c:SIGQUEUE_MAX}},            /*  18, _SC_SIGQUEUE_MAX */
   {cons, {c:TIMER_MAX}},               /*  19, _SC_TIMER_MAX */
   {nsup, {c:0}},                       /*  20, _SC_TZNAME_MAX */
-  {cons, {c:-1L}},                     /*  21, _SC_ASYNCHRONOUS_IO */
+  {cons, {c:_POSIX_ASYNCHRONOUS_IO}},  /*  21, _SC_ASYNCHRONOUS_IO */
   {cons, {c:_POSIX_FSYNC}},            /*  22, _SC_FSYNC */
   {cons, {c:_POSIX_MAPPED_FILES}},     /*  23, _SC_MAPPED_FILES */
   {cons, {c:-1L}},                     /*  24, _SC_MEMLOCK */
This page took 0.031794 seconds and 5 git commands to generate.