浏览代码

multibyte string logic should not be used on systems with the wctype header file but missing the wctype data type (NetBSD)

Michael Schloh von Bennewitz 21 年之前
父节点
当前提交
701e6ea36a
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      grep/grep.spec

+ 5 - 1
grep/grep.spec

@@ -34,7 +34,7 @@ Class:        BASE
 Group:        Text
 License:      GPL
 Version:      2.5.1
-Release:      20040607
+Release:      20040810
 
 #   list of sources
 Source0:      ftp://ftp.gnu.org/gnu/grep/grep-%{version}.tar.gz
@@ -63,6 +63,10 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %{l_shtool} subst \
+        -e 's;^\(#if defined HAVE_WCTYPE_H\)\(.*\);\1 \&\& defined HAVE_WCTYPE\2;' \
+        src/dfa.c \
+        src/search.c
 
 %build
     ( echo "ac_cv_header_libintl_h=no"