Update CI
All checks were successful
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Successful in 11s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Successful in 15s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Successful in 17s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Successful in 15s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Successful in 12s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Successful in 10s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-07-26 00:46:46 +03:00
parent 8844317936
commit b642059ee5
3 changed files with 36 additions and 26 deletions

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,9 +26,12 @@
#ifdef DCFG_PTHREAD_SUPPORT
# include <pthread.h>
#else
# if defined __USE_POSIX199506 || defined __USE_UNIX98
# else
typedef struct {
int unused;
} pthread_mutex_t;
# endif
void pthread_mutex_init(pthread_mutex_t *, void *);
void pthread_mutex_destroy(pthread_mutex_t *);
@@ -1064,7 +1070,8 @@ Value *ast_to_value(dcfg_Instance *instance, AST *root)
dcfg_Value *dcfg_parse(dcfg_Instance *instance, dcfg_StringView const file_path)
{
char path_buf[file_path.size + 1] = {};
char path_buf[file_path.size + 1];
memset(path_buf, 0, sizeof(path_buf));
memcpy(path_buf, file_path.data, file_path.size);
char *abs = instance->realpath(path_buf);