summaryrefslogtreecommitdiff
path: root/klibc_fixups.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-23 01:04:09 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:06:22 -0700
commitc94705b5648499c58b32099dc3a303b64e1de603 (patch)
tree908a63481fa4ea457cf60913862f2d160ba16eba /klibc_fixups.c
parentc332cfc72da865f3c9f5e34867fc3ac1b0bf0154 (diff)
[PATCH] get 'make release' to work properly again.
Diffstat (limited to 'klibc_fixups.c')
-rw-r--r--klibc_fixups.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/klibc_fixups.c b/klibc_fixups.c
new file mode 100644
index 0000000000..a5d5d5948a
--- /dev/null
+++ b/klibc_fixups.c
@@ -0,0 +1,33 @@
+
+#ifdef __KLIBC__
+
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
+
+char *strerror(int errnum)
+{
+ return "some error";
+}
+
+int strcasecmp(const char *s1, const char *s2)
+{
+ char *n1;
+ char *n2;
+ int retval;
+ int i;
+
+ n1 = strdup(s1);
+ n2 = strdup(s2);
+
+ for (i = 0; i < strlen(n1); ++i)
+ n1[i] = toupper(n1[i]);
+ for (i = 0; i < strlen(n2); ++i)
+ n2[i] = toupper(n2[i]);
+ retval = strcmp(n1, n2);
+ free(n1);
+ free(n2);
+ return retval;
+}
+
+#endif