X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/734aad71947a79037af64f74c683f5eb36fe6065..5f4d86c1219d56604890d932a3152b3b5dd15b55:/sys/errno.c diff --git a/sys/errno.c b/sys/errno.c index e2a4e5e..1beeff9 100644 --- a/sys/errno.c +++ b/sys/errno.c @@ -3,8 +3,6 @@ * * @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 * Version 2.0 (the 'License'). You may not use this file except in @@ -35,7 +33,7 @@ extern int errno; 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;