Make test files buildable for glibc

This commit is contained in:
Wildan M
2026-03-25 03:11:33 +07:00
parent 186dc66818
commit 46379d7001
34 changed files with 67 additions and 39 deletions
+7
View File
@@ -6,9 +6,16 @@
#include <pthread.h>
// TODO: glibc requires arg to be not const, but not relibc
#ifndef __GLIBC__
const char *msg1 = "first";
const char *msg2 = "second";
const char *msg3 = "third";
#else
char *msg1 = "first";
char *msg2 = "second";
char *msg3 = "third";
#endif
void cleanup1(void *arg) {
printf("Running %s cleanup callback\n", (const char *)arg);