projects
/
project
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007d945
)
add strdupa macro for compatibility
author
Felix Fietkau
<nbd@nbd.name>
Tue, 26 Mar 2024 19:10:02 +0000
(20:10 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 26 Mar 2024 19:10:02 +0000
(20:10 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
uclient-fetch.c
patch
|
blob
|
history
diff --git
a/uclient-fetch.c
b/uclient-fetch.c
index 282092e2f556a54c9a74366840231c57450c1428..1e51ff3e8e46cecdc98f3341e24ba09065baf193 100644
(file)
--- 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;