summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorManuel Novoa III2004-03-06 00:32:54 +0000
committerManuel Novoa III2004-03-06 00:32:54 +0000
commitadab517f76b92e9c13be070e7bdc57ec4ca3c916 (patch)
treead1d5f23445ea6ac534d82277653a80ae638ddea /libbb
parentdb6ee81c994c7571a80a5e37c6a331a69e5dccde (diff)
downloadbusybox-adab517f76b92e9c13be070e7bdc57ec4ca3c916.zip
busybox-adab517f76b92e9c13be070e7bdc57ec4ca3c916.tar.gz
Don't build these support functions for uClibc, as it always supplies
versions.
Diffstat (limited to 'libbb')
-rw-r--r--libbb/module_syscalls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/module_syscalls.c b/libbb/module_syscalls.c
index 9dca6f0..81fb8f2 100644
--- a/libbb/module_syscalls.c
+++ b/libbb/module_syscalls.c
@@ -26,6 +26,8 @@
#include <sys/syscall.h>
#include "libbb.h"
+/* uClibc always supplies (possibly ENOSYS) versions of these functions. */
+#ifndef __UCLIBC__
/* These syscalls are not included in very old glibc versions */
int delete_module(const char *name)
@@ -101,6 +103,8 @@ unsigned long create_module(const char *name, size_t size)
}
+#endif /* __UCLIBC__ */
+
/* END CODE */
/*
Local Variables: