bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep 2.5e - two patches


From: Uwe H. Steinfeld
Subject: grep 2.5e - two patches
Date: Sat, 17 Mar 2001 12:17:08 +0100

Two additions are necessary to build grep 2.5e on my (Cygwin) system :

2001-03-17  Uwe Steinfeld
    * lib/quotearg.c: define mbstate_t if we don't HAVE_MBRTOWC
    * lib/strtol.c: define CHAR_BIT if it is not already defined

diff -Nur grep-2.5e/lib/quotearg.c grep-2.5e-NEW/lib/quotearg.c
--- grep-2.5e/lib/quotearg.c Sat Mar  3 23:56:26 2001
+++ grep-2.5e-NEW/lib/quotearg.c Sat Mar 17 11:59:36 2001
@@ -81,6 +81,7 @@
 # define mbrtowc(pwc, s, n, ps) ((*(pwc) = *(s)) != 0)
 # define mbsinit(ps) 1
 # define iswprint(wc) ISPRINT ((unsigned char) (wc))
+  typedef int mbstate_t;
 #endif
 
 #ifndef iswprint
diff -Nur grep-2.5e/lib/strtol.c grep-2.5e-NEW/lib/strtol.c
--- grep-2.5e/lib/strtol.c Thu Feb  8 07:50:24 2001
+++ grep-2.5e-NEW/lib/strtol.c Sat Mar 17 12:02:30 2001
@@ -40,6 +40,10 @@
 # include <limits.h>
 #endif
 
+#ifndef CHAR_BIT
+# define CHAR_BIT 8
+#endif
+
 #ifdef STDC_HEADERS
 # include <stddef.h>
 # include <stdlib.h>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]