소스 검색

* Reverted index/rindex fix

Nigel Kukard 17 년 전
부모
커밋
8ecdbf6a63
1개의 변경된 파일0개의 추가작업 그리고 21개의 파일을 삭제
  1. 0 21
      package/sfdisk/sfdisk.010.index-rindex-fix.patch

+ 0 - 21
package/sfdisk/sfdisk.010.index-rindex-fix.patch

@@ -1,21 +0,0 @@
-diff -ru sfdisk_llseek-fix/sfdisk.c sfdisk_index-rindex-fix/sfdisk.c
---- sfdisk_llseek-fix/sfdisk.c	2008-04-17 08:42:35.000000000 +0000
-+++ sfdisk_index-rindex-fix/sfdisk.c	2008-04-17 09:50:17.000000000 +0000
-@@ -58,6 +58,17 @@
- 
- #define SIZE(a)	(sizeof(a)/sizeof(a[0]))
- 
-+/* 
-+ * Why these wouldn't be defined in string.h, I don't know, there is a block
-+ * testing for BSD, and no other mention of these functions ... NK
-+ */
-+#if !defined(index)
-+#  define index(s,c) strchr((s), (c))
-+#endif
-+#if !defined(rindex)
-+#  define rindex(s,c) strrchr((s), (c))
-+#endif
-+
- /*
-  * Table of contents:
-  *  A. About seeking