This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Cygwin should understand Linux errnos


Cygwin is supposed to emulate Linux so it should understand Linux errnos.

Ok to apply?

cgf

2012-08-13  Christopher Faylor  <me.cygwin2012@cgf.cx>

	* ./libc/include/sys/features.h: Define __LINUX_ERRNO_EXTENSIONS__ for
	Cygwin.

Index: libc/include/sys/features.h
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/include/sys/features.h,v
retrieving revision 1.27
diff -d -u -p -r1.27 features.h
--- libc/include/sys/features.h	20 Jul 2011 19:41:15 -0000	1.27
+++ libc/include/sys/features.h	13 Aug 2012 18:49:29 -0000
@@ -92,6 +92,7 @@ extern "C" {
 #endif
 
 #ifdef __CYGWIN__
+#define __LINUX_ERRNO_EXTENSIONS__
 
 #if !defined(__STRICT_ANSI__) || defined(__cplusplus) || __STDC_VERSION__ >= 199901L
 #define _POSIX_VERSION				200112L


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]