aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libc.h b/include/libc.h
index 18ac25aa..3b472e39 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -40,8 +40,8 @@ extern int strcmp(char*, char*);
extern char* strcpy(char*, char*);
*/
extern char* strecpy(char*, char*, char*);
- /*
-extern char* strdup(char*);
+extern char* p9strdup(char*);
+/*
extern char* strncat(char*, char*, long);
extern char* strncpy(char*, char*, long);
extern int strncmp(char*, char*, long);
@@ -128,6 +128,8 @@ extern void* malloctopoolblock(void*);
#define realloc p9realloc
#define calloc p9calloc
#define free p9free
+#undef strdup
+#define strdup p9strdup
#endif
/*