Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6ab319

Browse files
Brahmajit Dassimo5
authored andcommitted
Fix build on musl libc with clang 16
Signed-off-by: Brahmajit Das <[email protected]>
1 parent 4024680 commit f6ab319

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/gp_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ char *gp_strerror(int errnum)
6363
static __thread char buf[MAX_GP_STRERROR];
6464
int saved_errno = errno;
6565

66-
#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE)
66+
#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || !defined(__GLIBC__)
6767
/* XSI version */
6868
int ret;
6969

tests/userproxytest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <stdbool.h>
66
#include <stdio.h>
77
#include <stdlib.h>
8+
#include <string.h>
89
#include <sys/socket.h>
910
#include <sys/un.h>
1011
#include <sys/wait.h>

0 commit comments

Comments
 (0)