Correct memcmp(), <sys/resource.h>
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 7cb11f2..ef14bde 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -5,7 +5,8 @@
#ifndef _SYS_RESOURCE_H
#define _SYS_RESOURCE_H
-#include <sys/types.h> /* MUST be included first! */
+#include <klibc/extern.h>
+#include <sys/types.h> /* MUST be included before linux/resource.h */
#include <linux/resource.h>
__extern int getpriority(int, int);
diff --git a/klibc/Makefile b/klibc/Makefile
index 27d0fbc..873d12d 100644
--- a/klibc/Makefile
+++ b/klibc/Makefile
@@ -29,7 +29,7 @@
sleep.o usleep.o raise.o abort.o assert.o alarm.o pause.o \
signal.o sigaction.o sigpending.o sigprocmask.o sigsuspend.o \
brk.o sbrk.o malloc.o realloc.o calloc.o mmap.o \
- memcpy.o memset.o memccpy.o memmem.o strcat.o strchr.o \
+ memcpy.o memcmp.o memset.o memccpy.o memmem.o strcat.o strchr.o \
strcmp.o strcpy.o strdup.o strlen.o strncat.o strstr.o \
strncmp.o strncpy.o strrchr.o strspn.o strsep.o strtok.o \
gethostname.o getdomainname.o getcwd.o seteuid.o setegid.o \
diff --git a/klibc/include/sys/resource.h b/klibc/include/sys/resource.h
index 7cb11f2..ef14bde 100644
--- a/klibc/include/sys/resource.h
+++ b/klibc/include/sys/resource.h
@@ -5,7 +5,8 @@
#ifndef _SYS_RESOURCE_H
#define _SYS_RESOURCE_H
-#include <sys/types.h> /* MUST be included first! */
+#include <klibc/extern.h>
+#include <sys/types.h> /* MUST be included before linux/resource.h */
#include <linux/resource.h>
__extern int getpriority(int, int);
diff --git a/klibc/memcmp.c b/klibc/memcmp.c
index ff30016..9dda5a4 100644
--- a/klibc/memcmp.c
+++ b/klibc/memcmp.c
@@ -2,7 +2,7 @@
* memcmp.c
*/
-#include <memcmp.h>
+#include <string.h>
int memcmp(const void *s1, const void *s2, size_t n)
{
diff --git a/memcmp.c b/memcmp.c
index ff30016..9dda5a4 100644
--- a/memcmp.c
+++ b/memcmp.c
@@ -2,7 +2,7 @@
* memcmp.c
*/
-#include <memcmp.h>
+#include <string.h>
int memcmp(const void *s1, const void *s2, size_t n)
{