Skip to content

Commit

Permalink
fix strdup on musl libc
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Oct 16, 2024
1 parent 96b5842 commit 2343cea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ccode/fetcher_curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#include <value.h>


#ifdef __STRICT_ANSI__
#define strdup(A) strcpy(calloc(strlen(A) + 1, sizeof(char)), A)
#endif

#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
Expand Down

0 comments on commit 2343cea

Please sign in to comment.