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

[Minios-devel] [UNIKRAFT/PTHREAD-EMBEDDED PATCH v2 8/8] include/pthread.h: Guard C code for C++


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 3 Jun 2019 18:16:40 +0300
  • Cc: Florian.Schmidt@xxxxxxxxx, Teodora Serbanescu <teo.serbanescu16@xxxxxxxxx>
  • Delivery-date: Mon, 03 Jun 2019 15:16:54 +0000
  • Ironport-phdr: 9a23:9rtOox93rsIX7f9uRHKM819IXTAuvvDOBiVQ1KB20OscTK2v8tzYMVDF4r011RmVBNydsqkbwLqP+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhViDanfL9/Ihe7oQrSu8ULnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRQT2gykbKTE27GDXitRxjK1FphKhuwd/yJPQbI2MKfZyYr/RcdYcSGFcXMheSjZBD5u8YYUREuQPM+VWoY7/qFsAthayGRWgCfnzxjJSmnP6was32PkhHwHc2wwgGsoDvWrTrNXuKKcSUOa1x7TOwzXed/NWxCr25Y/UfRAmuvGMQbNwcczLxUkrCgPFlkiQpJf5MDOOzOgNq3Wb4PF6WeK1jG4qsgd8qSWsyMc0koTFm40Yxk3e+Sh6wIs5P8O0RFB5bNK+HpZcrzyWOoRrTs84QGxluDw2xqMItJO1ZiQG1ZsqywDZZveaaYaH+AjjW/yUITpggXJlf6+wiAiq/Ei7z+38StG00FFXripZitXMtm4C1xjU6sWfVPt9+12u2TeL1wzJ9u5EOlo4lbLGK5E62LIwjJ0TvVzCHi/whkr2kLebelgr9+S18ejqYbXrqoWCO4NqiAzyKKojltS6AesiMwgOW2ab+f671L3m5UD2XLJKjuYqkqnYtpDWP8AbprOhAw9IyYss9w2/Ay2+0NQFhnYLNkhFeBWfg4jzJ17OOOz4Deu4g1m0jDdk2ffGMqf6AprTNHjMi63ufbBj5E5H1AUz0M1T6pNPB7EOJfL8QE7xtNjCAhAlNAy0xv7tCM9h2YMGRWKPHqiZPbvXsV+J4OIvIu6MZJQMtDngNfcl+eDhjXsilF8ZfKmpxocXaGuiEvVpPUqZZ2DggtAbEWcFpgA+VvDliEWeUT5PYHa/R6Iy5jU8CIK8DIfMXIatjKac0iinHp1WY2FGBU2QEXrzcYWLResDaCaILcB6iDALS6WhGMcd0kSrtQn7zKEiIufK9ykwsZP4yMMz9+DV0xYo+m9aFcOYhkqKVH11mCssWicrlPR0pldhy1HF1bVgntRTDppL+vkPSABsZs2U9PBzF92nAlGJRdyOUlvzB4z+WTw=
  • Ironport-sdr: q4jHxAPDoUpTX5Amxj4pidsEKq5f9R/amOGiPuYhjheeXV/ssKd2f7NjZDixh+8w2raAd8Kr6C htSAgli8lEkQ==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Signed-off-by: Teodora Serbanescu <teo.serbanescu16@xxxxxxxxx>
Reviewed-by: Florian Schmidt <florian.schmidt@xxxxxxxxx>
---
 include/pthread.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/pthread.h b/include/pthread.h
index 8cd1ade..799f39b 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -22,13 +22,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

 


Rackspace

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