bug-findutils
[Top][All Lists]
Advanced

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

Re: findutils-4.2.26 build error on HP-UX 10.20


From: Peter Fales
Subject: Re: findutils-4.2.26 build error on HP-UX 10.20
Date: Tue, 22 Nov 2005 09:54:00 -0600
User-agent: Mutt/1.4.2.1i

Thanks for the info. For what it's worth, there is at least one other
place in gnulib/lib (quotearg.c) where the wctype.h header is protected
by #if HAVE_WCTYPE_H.  So, it seems reasonable to do the same thing in 
mbchar.h

-- 
Peter Fales                       Lucent Technologies, Room 1C-436
N9IYJ                             2000 Lucent Ln, PO Box 3033
internet: address@hidden          Naperville, IL 60566-7033
                                  work: (630) 979-8031

On Tue, Nov 22, 2005 at 01:35:09AM +0000, James Youngman wrote:
> On Mon, Nov 21, 2005 at 10:07:29AM -0600, Peter Fales wrote:
> > findutils fails to build on an HP-UX 10.20 machine because it doesn't
> > have wctype.h.   
> 
> Yes, along with much of the rest of the GNU tool set, GNU findutils
> now assumes that it is being built on a system that complies with at
> least the oldest version of the ANSI C standard, ISO/IEC 9899:1990.  I
> believe that ANSI C requires <wctype.h>.
> 
> I'm copying this email to the gnulib project, in case they want to
> apply the patch anyway (the gnulib subdirectory of the findutils
> source code is just imported from the gnulib project).
> 
> In any case, thanks for the diagnosis and patch.
> 
> regards, 
> James.
> 
> > Patch is:
> > 
> > diff -ur findutils-4.2.26/gnulib/lib/mbchar.h 
> > findutils-4.2.26.new/gnulib/lib/mbchar.h
> > --- findutils-4.2.26/gnulib/lib/mbchar.h    2005-09-17 17:06:40.000000000 
> > -0500
> > +++ findutils-4.2.26.new/gnulib/lib/mbchar.h        2005-11-21 
> > 09:52:26.000000000 -0600
> > @@ -156,7 +156,9 @@
> >  #include <time.h>
> >  #include <wchar.h>
> >  
> > +#ifdef HAVE_WCTYPE_H
> >  #include <wctype.h>
> > +#endif
> >  
> >  #define MBCHAR_BUF_SIZE 24




reply via email to

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