This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: glob.h lack of #includes
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: Re: glob.h lack of #includes
- From: Roland McGrath <roland@frob.com>
- Date: Tue, 11 Aug 1998 23:15:53 -0400
- Cc: GNU libc hacker <libc-hacker@gnu.org>
- Emacs: the prosecution rests its case.
> Roland McGrath <roland@frob.com> writes:
>
> > glob.h does not do the necessary #include magic to make sure that
> > size_t is defined before it uses it. This needs to be fixed (so
> > `#include <glob.h>' at the beginning of a source file works), but I
> > don't know that interacts with the other GNU packages that use the
> > file.
>
> This is a problem with the standard. POSIX.2 is written that it does
> not allow glob.h (and regex.h) to define size_t. It is always
> required to include sys/types.h (or another header defining size_t)
> before including any of the POSIX.2 headers.
What happened to __size_t?