Skip to content

Commit

Permalink
attributes.c: Allow GNU definitions regardless of _GNU_SOURCE
Browse files Browse the repository at this point in the history
Signed-off-by: Costin Lupu <[email protected]>
Reviewed-by: Vlad-Andrei Badoiu <[email protected]>
  • Loading branch information
clupuishere committed Dec 9, 2019
1 parent 7a9b345 commit 411e35a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions attributes.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ int pthread_attr_getstack(const pthread_attr_t *attr,
return rc;
}

#ifdef _GNU_SOURCE
int pthread_getattr_np(pthread_t thread, pthread_attr_t *attr)
{
pte_thread_t *tp = (pte_thread_t *) thread.p;
Expand Down Expand Up @@ -150,5 +149,3 @@ int pthread_getname_np(pthread_t thread, char *name, size_t len)

return 0;
}

#endif /* _GNU_SOURCE */

0 comments on commit 411e35a

Please sign in to comment.