Fuck GCC
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Failing after 15s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Failing after 13s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Failing after 11s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Failing after 10s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Failing after 11s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Failing after 15s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-07-26 00:56:45 +03:00
parent 5c0411cb56
commit dcc89bc599

View File

@@ -11,6 +11,9 @@
# endif
# define _XOPEN_SOURCE 200809L
#else
# ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
# endif
# define _POSIX_C_SOURCE 0L
#endif
@@ -23,6 +26,12 @@
#ifdef DCFG_PTHREAD_SUPPORT
# include <pthread.h>
#else
# ifdef __USE_POSIX199506
# undef __USE_POSIX199506
# endif
# ifdef __USE_UNIX98
# undef __USE_UNIX98
# endif
typedef struct {
int unused;
} pthread_mutex_t;