Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread Include limits.h to get PTHREAD_KEYS_MAX, and...



details:   https://anonhg.NetBSD.org/src/rev/ff887edafbfc
branches:  trunk
changeset: 770165:ff887edafbfc
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 06 16:03:48 2011 +0000

description:
Include limits.h to get PTHREAD_KEYS_MAX, and move its definition there.

diffstat:

 lib/libpthread/pthread_int.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 2a609a020d52 -r ff887edafbfc lib/libpthread/pthread_int.h
--- a/lib/libpthread/pthread_int.h      Thu Oct 06 16:02:52 2011 +0000
+++ b/lib/libpthread/pthread_int.h      Thu Oct 06 16:03:48 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_int.h,v 1.80 2011/09/16 16:05:59 joerg Exp $   */
+/*     $NetBSD: pthread_int.h,v 1.81 2011/10/06 16:03:48 christos Exp $        */
 
 /*-
  * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -54,6 +54,7 @@
 
 #include <lwp.h>
 #include <signal.h>
+#include <limits.h>
 
 #ifdef __GNUC__
 #define        PTHREAD_HIDE    __attribute__ ((visibility("hidden")))
@@ -61,7 +62,6 @@
 #define        PTHREAD_HIDE    /* nothing */
 #endif
 
-#define PTHREAD_KEYS_MAX       256
 #define        PTHREAD__UNPARK_MAX     32
 
 /*



Home | Main Index | Thread Index | Old Index