projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add strdupa macro for compatibility
[project/uclient.git]
/
uclient-fetch.c
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;