summaryrefslogtreecommitdiff
path: root/libc/misc/lsearch
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/lsearch')
-rw-r--r--libc/misc/lsearch/lsearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/lsearch/lsearch.c b/libc/misc/lsearch/lsearch.c
index aed4b1e7d..ace739211 100644
--- a/libc/misc/lsearch/lsearch.c
+++ b/libc/misc/lsearch/lsearch.c
@@ -8,6 +8,7 @@
* "It's not reality that's important, but how you perceive things."
*/
+#include <string.h>
#include <stdio.h>
char *lfind(key, base, num, size, cmp)
@@ -33,7 +34,6 @@ register unsigned int size;
int (*cmp) ();
{
register char *p;
- char *memcpy();
if ((p = lfind(key, base, num, size, cmp)) == NULL) {
p = memcpy((base + (size * (*num))), key, size);