]> xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/commitdiff
attributes.c: Allow GNU definitions regardless of _GNU_SOURCE
authorCostin Lupu <costin.lupu@cs.pub.ro>
Fri, 6 Dec 2019 13:12:30 +0000 (15:12 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Mon, 9 Dec 2019 05:45:51 +0000 (07:45 +0200)
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
attributes.c

index 7729096a9a00e3bc5775c4d9660ea9cc11533ca5..a7b4842f09726f07b7f54931c3325c6480a15f07 100644 (file)
@@ -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 */