[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/PTHREAD-EMBEDDED PATCH 2/3] attributes.c: Allow GNU definitions regardless of _GNU_SOURCE



Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 attributes.c | 3 ---
 1 file changed, 3 deletions(-)

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 */
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.