Index: uspace/app/bithenge/helenos/os.h
===================================================================
--- uspace/app/bithenge/helenos/os.h	(revision 978ccaf1353e6dc7d83c324cc4bfc3d5a951be8c)
+++ uspace/app/bithenge/helenos/os.h	(revision 02dcb2085d47504d22fe5a936480699f8a2ccbe8)
@@ -35,4 +35,5 @@
 #include <macros.h>
 #include <mem.h>
+#include <stdlib.h>
 #include <str.h>
 #include <str_error.h>
@@ -67,3 +68,11 @@
 }
 
+static inline void *memchr(const void *s, int c, size_t n)
+{
+	for (size_t i = 0; i < n; i++)
+		if (((char *)s)[i] == c)
+			return (void *)(s + i);
+	return NULL;
+}
+
 #endif
