Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-08-20 05:38:16 +0400
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-08-20 05:38:16 +0400
commit74604ab159782ff67e9d214e6300ab83db52363f (patch)
tree337d7ffbc302fed382fba4a8ecd22a5c592dc307
parent1165d4442d19575a3fdfcf6024a1be6fb1a517fb (diff)
2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/sys/types.h (ssize_t): Defined as int as opposed to long. Thanks to bvassche for the report.
-rw-r--r--winsup/mingw/ChangeLog6
-rw-r--r--winsup/mingw/include/sys/types.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index d0c6c6730..048846321 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,9 @@
+2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+
+ * include/sys/types.h (ssize_t): Defined as int as opposed to long.
+
+ Thanks to bvassche for the report.
+
2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
Correct checking for short option matches in getopt_long_only().
diff --git a/winsup/mingw/include/sys/types.h b/winsup/mingw/include/sys/types.h
index 82085e43b..26d91254e 100644
--- a/winsup/mingw/include/sys/types.h
+++ b/winsup/mingw/include/sys/types.h
@@ -112,7 +112,7 @@ typedef _sigset_t sigset_t;
#ifndef _SSIZE_T_
#define _SSIZE_T_
-typedef long _ssize_t;
+typedef int _ssize_t;
#ifndef _NO_OLDNAMES
typedef _ssize_t ssize_t;