[master] 37040b4d8 mgt: Add an intentional conflict with pthread.h
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Jun 23 15:02:05 UTC 2025
commit 37040b4d83e865718a1ec1429c46d1f97bc9efbc
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Fri Jun 20 18:05:52 2025 +0200
mgt: Add an intentional conflict with pthread.h
If the macro check is not enough, this one hopefully catches stragglers.
Suggestion from @asadsa92.
Refs #4346
diff --git a/bin/varnishd/mgt/mgt.h b/bin/varnishd/mgt/mgt.h
index b99b96e22..146ed69a6 100644
--- a/bin/varnishd/mgt/mgt.h
+++ b/bin/varnishd/mgt/mgt.h
@@ -251,6 +251,13 @@ extern const char *mgt_vmod_path;
#error "Keep pthreads out of the manager process"
#endif
+static inline void
+pthread_create(void)
+{
+
+ WRONG("Intentional conflict with pthread.h");
+}
+
#define MGT_FEATURE(x) COM_FEATURE(mgt_param.feature_bits, x)
#define MGT_EXPERIMENT(x) COM_EXPERIMENT(mgt_param.experimental_bits, x)
#define MGT_DO_DEBUG(x) COM_DO_DEBUG(mgt_param.debug_bits, x)
More information about the varnish-commit
mailing list