From: Costin Lupu Date: Fri, 6 Dec 2019 13:12:30 +0000 (+0200) Subject: attributes.c: Allow GNU definitions regardless of _GNU_SOURCE X-Git-Tag: RELEASE-0.4~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=411e35a1725d7bfd59887f2464769acdbc589483;p=unikraft%2Flibs%2Fpthread-embedded.git attributes.c: Allow GNU definitions regardless of _GNU_SOURCE Signed-off-by: Costin Lupu Reviewed-by: Vlad-Andrei Badoiu --- diff --git a/attributes.c b/attributes.c index 7729096..a7b4842 100644 --- a/attributes.c +++ b/attributes.c @@ -79,7 +79,6 @@ out: 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; @@ -150,5 +149,3 @@ int pthread_getname_np(pthread_t thread, char *name, size_t len) return 0; } - -#endif /* _GNU_SOURCE */