Skip to content

Commit 37040b4

Browse files
committed
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
1 parent 54658d1 commit 37040b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/varnishd/mgt/mgt.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@ extern const char *mgt_vmod_path;
251251
#error "Keep pthreads out of the manager process"
252252
#endif
253253

254+
static inline void
255+
pthread_create(void)
256+
{
257+
258+
WRONG("Intentional conflict with pthread.h");
259+
}
260+
254261
#define MGT_FEATURE(x) COM_FEATURE(mgt_param.feature_bits, x)
255262
#define MGT_EXPERIMENT(x) COM_EXPERIMENT(mgt_param.experimental_bits, x)
256263
#define MGT_DO_DEBUG(x) COM_DO_DEBUG(mgt_param.debug_bits, x)

0 commit comments

Comments
 (0)