This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH]: Do not define _flock_t for cygwin.
- From: Thomas Pfaff <tpfaff at gmx dot net>
- To: newlib at sources dot redhat dot com
- Date: Fri, 26 Mar 2004 22:04:48 +0100
- Subject: [PATCH]: Do not define _flock_t for cygwin.
Cygwin will get its own include file for defining _lock_t.
2004-03-26 Thomas Pfaff <tpfaff@gmx.net>
* libc/include/sys/_types.h: Include cywin/_types.h when
building for cygwin. Do not define _flock_t on cygwin.
--- _types.h.org 2004-01-31 01:33:37.001000000 +0100
+++ _types.h 2004-02-10 12:28:44.359443200 +0100
@@ -9,6 +9,10 @@
#ifndef _SYS__TYPES_H
#define _SYS__TYPES_H
+#ifdef __CYGWIN__
+#include <cygwin/_types.h>
+#endif
+
typedef long _off_t;
__extension__ typedef long long _off64_t;
@@ -32,7 +36,9 @@ typedef struct
} __value; /* Value so far. */
} _mbstate_t;
+#ifndef __CYGWIN__
typedef int _flock_t;
+#endif
/* Iconv descriptor type */
typedef void *_iconv_t;