Loading...
sys/errno.c Libc-262.3.2 Libc-391
--- Libc/Libc-262.3.2/sys/errno.c
+++ Libc/Libc-391/sys/errno.c
@@ -2,8 +2,6 @@
  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
- * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
  * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
@@ -35,7 +33,7 @@
 int *__error(void) {
     pthread_t self = pthread_self();
     /* If we're not a detached pthread, just return the global errno */
-    if ((self == (pthread_t)0) || (self->sig != _PTHREAD_SIG) || (self->detached & _PTHREAD_CREATE_PARENT)) {
+    if ((self == (pthread_t)0) || (self->sig != _PTHREAD_SIG)) {
         return &errno;
     }
     return &self->err_no;