Don't build these support functions for uClibc, as it always supplies
authorManuel Novoa III <mjn3@codepoet.org>
Sat, 6 Mar 2004 00:32:54 +0000 (00:32 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Sat, 6 Mar 2004 00:32:54 +0000 (00:32 -0000)
versions.

libbb/module_syscalls.c

index 9dca6f04f602a5723333fca25a8ea67a4f42dfe8..81fb8f25596271c4f5c47b0816201a9422cfc014 100644 (file)
@@ -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: