[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/PTHREAD-EMBEDDED PATCH 8/8] include/pthread.h: Guard C code for C++
- To: minios-devel@xxxxxxxxxxxxx
- From: Costin Lupu <costin.lupu@xxxxxxxxx>
- Date: Mon, 15 Apr 2019 15:43:20 +0300
- Cc: felipe.huici@xxxxxxxxx, Florian.Schmidt@xxxxxxxxx, sharan.santhanam@xxxxxxxxx, Teodora Serbanescu <teo.serbanescu16@xxxxxxxxx>, simon.kuenzer@xxxxxxxxx, yuri.volchkov@xxxxxxxxx
- Delivery-date: Mon, 15 Apr 2019 12:44:39 +0000
- Ironport-phdr: 9a23:Bzr31BCjKVI8plztVivwUyQJP3N1i/DPJgcQr6AfoPdwSP35psqwAkXT6L1XgUPTWs2DsrQY0rOQ6fGrBDZIoc7Y9ixbKNoUD15NoP5VtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdaz6FYHIksu4yf259YHNbAVUnjq9Zq55IAmroQnLucQanJZuJrwvxhbNrXdFe/pazn5sKV6Pghrw/Mi98IN//yhKp/4t68tMWrjmcqolSrBVEC4oOH0v6s3xshnDQwqP5n8CXWgTjxFFHQvL4gzkU5noqif1ufZz1yecPc3tULA7Qi+i4LtxSB/pkygIKTg0+3zKh8NqjaJbpBWhpwFjw4PRfYqYOuZycr/bcNgHXmdKQNpfWDJdDYO9d4sPDvQOPeBEr4nmulACqQKyCRSwCO/zzzNFgGL9068n3OQ7CQzI3BIuEc8AvnrXq9v6NqkSXPupwKXU1zjPc+lb1Svh5IXObxsvoeuMXbV1ccfJ10QvEBjFjkmRqYzjIjib0PkNs3CG7+F9Uu+gl2knqxptojiuwMcgkI3Jhp8NylDZ7ih23J01KcegSE5metGoCoFQtyaDOoZwX8gsQHlotT4nxrAJpJK3ZisHxZQ9yxLBdfCKcZKE7xz7WOqMLjp0mWhpdbG/ihqo70StxOPxWtOp3FtFsCZIlMTHuGo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ini-os development list <minios-devel.lists.xenproject.org>
Signed-off-by: Teodora Serbanescu <teo.serbanescu16@xxxxxxxxx>
---
include/pthread.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/pthread.h b/include/pthread.h
index 2f4f7ed..ae6c21b 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -21,13 +21,14 @@
#ifndef __GLUE_PTHREAD_H__
#define __GLUE_PTHREAD_H__
-#include_next <pthread.h>
-
-/* C functions not implemented in pthread-embedded */
#ifdef __cplusplus
extern "C" {
#endif
+/* The C code in pthread.h is not guarded for C++ */
+#include_next <pthread.h>
+
+/* C functions not implemented in pthread-embedded */
int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize);
int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize);
--
2.11.0
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|