about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--posix/bits/posix1_lim.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e5e61acb69..72c893b89c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-08-02  Roland McGrath  <roland@redhat.com>
 
+	* posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
+	On 32-bit platforms they are the same; on 64-bit platforms ssize_t
+	matches long int, not int.
+
 	* locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
 	* wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
 	* locale/lc-ctype.c (_nl_postload_ctype): Likewise.
diff --git a/posix/bits/posix1_lim.h b/posix/bits/posix1_lim.h
index e16f4674dd..050fe47fdb 100644
--- a/posix/bits/posix1_lim.h
+++ b/posix/bits/posix1_lim.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,96,98,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,96,98,2000,01,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -127,7 +127,7 @@
 
 
 #ifndef	SSIZE_MAX
-# define SSIZE_MAX	INT_MAX
+# define SSIZE_MAX	LONG_MAX
 #endif