summaryrefslogtreecommitdiff
path: root/packages/module-init-tools/files
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-05-13 08:35:14 +0000
committerKoen Kooi <koen@openembedded.org>2007-05-13 08:35:14 +0000
commit1021872a44c22e64466ceab4cbebcca19baec63c (patch)
treee4f43e121adcfec4eba3f425c0ad2ad80921abf1 /packages/module-init-tools/files
parent73e75043bb77a03b49734f89c5e5d0495a60840d (diff)
module-init-tools: fix build against uclibc
Diffstat (limited to 'packages/module-init-tools/files')
-rw-r--r--packages/module-init-tools/files/module-init-tools-remove-index.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/module-init-tools/files/module-init-tools-remove-index.patch b/packages/module-init-tools/files/module-init-tools-remove-index.patch
new file mode 100644
index 0000000000..c56532e007
--- /dev/null
+++ b/packages/module-init-tools/files/module-init-tools-remove-index.patch
@@ -0,0 +1,14 @@
+http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/package/module-init-tools/module-init-tools-remove-index.patch?rev=16782&view=auto
+
+diff -ur module-init-tools-3.2.2/modprobe.c module-init-tools-3.2.2-patched/modprobe.c
+--- module-init-tools-3.2.2/modprobe.c 2005-12-01 17:42:09.000000000 -0600
++++ module-init-tools-3.2.2-patched/modprobe.c 2006-12-04 19:50:50.353237649 -0600
+@@ -270,7 +270,7 @@
+ char *modname;
+
+ /* Ignore lines without : or which start with a # */
+- ptr = index(line, ':');
++ ptr = strchr(line, ':');
+ if (ptr == NULL || line[strspn(line, "\t ")] == '#')
+ return 0;
+