diff options
| author | Felix Fietkau | 2024-03-26 19:10:02 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2024-03-26 19:10:02 +0000 |
| commit | e209a4ced1d80e8a4ac4290a6ade9d339eab1705 (patch) | |
| tree | a09db27552089a6a0de09dc731f5696be2b977d4 | |
| parent | 007d945467499f43656b141171d31f5643b83a6c (diff) | |
add strdupa macro for compatibility
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | uclient-fetch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c index 282092e..1e51ff3 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -41,6 +41,10 @@ #define LIB_EXT "so" #endif +#ifndef strdupa +#define strdupa(x) strcpy(alloca(strlen(x)+1),x) +#endif + static const char *user_agent = "uclient-fetch"; static const char *post_data; static const char *post_file; |