Index: uspace/lib/libc/generic/string.c
===================================================================
--- uspace/lib/libc/generic/string.c	(revision c98e6ee244a8e271a395a052069c23bca4f8b538)
+++ uspace/lib/libc/generic/string.c	(revision 30b3ddbf5f1fe2545ec70af161e38ba91af1d3b4)
@@ -39,5 +39,5 @@
 #include <align.h>
 #include <sys/types.h>
-
+#include <malloc.h>
 
 /* Dummy implementation of mem/ functions */
@@ -354,4 +354,15 @@
 }
 
+char * strdup(const char *s1)
+{
+	size_t len = strlen(s1) + 1;
+	void *ret = malloc(len);
+
+	if (ret == NULL)
+		return (char *) NULL;
+
+	return (char *) memcpy(ret, s1, len);
+}
+
 /** @}
  */
