diff mbox series

Cygwin: define _POSIX_ASYNCHRONOUS_IO

Message ID 20180725154954.28700-1-yselkowi@redhat.com
State Accepted
Commit f6417be2aa98e9da0aca22fbbe2a2a7c39a6f45b
Headers show
Series Cygwin: define _POSIX_ASYNCHRONOUS_IO | expand

Commit Message

Yaakov Selkowitz July 25, 2018, 3:49 p.m. UTC
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 | 2 +-
 winsup/cygwin/sysconf.cc           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.17.1

Comments

Corinna Vinschen July 25, 2018, 4:09 p.m. UTC | #1
On Jul 25 10:49, Yaakov Selkowitz wrote:
> 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 | 2 +-

>  winsup/cygwin/sysconf.cc           | 2 +-

>  2 files changed, 2 insertions(+), 2 deletions(-)


Thanks, please push.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
diff mbox series

Patch

diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
index 2900b332f..f28dd071b 100644
--- a/newlib/libc/include/sys/features.h
+++ b/newlib/libc/include/sys/features.h
@@ -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
diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc
index ff98f57a3..753febca4 100644
--- a/winsup/cygwin/sysconf.cc
+++ b/winsup/cygwin/sysconf.cc
@@ -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 */