This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: remove <sys/sysmacros.h> from <sys/types.h>
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Rich Felker <dalias at libc dot org>
- Cc: Zack Weinberg <zackw at panix dot com>, Roland McGrath <roland at hack dot frob dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 14 Nov 2015 23:18:57 +0100
- Subject: Re: RFC: remove <sys/sysmacros.h> from <sys/types.h>
- Authentication-results: sourceware.org; auth=none
- References: <CAKCAbMiU=h2Vs3X-b8mRjP3Kig_TVngObPNpYauTqZs_=0q6Gg at mail dot gmail dot com> <20151113234333 dot D1DCA2C3B7B at topped-with-meat dot com> <m2ziyhszvk dot fsf at linux-m68k dot org> <CAKCAbMhnz=PSQZ=yxVbrBpmL8sw5XznBz88HPiwSQD4kbcRXmQ at mail dot gmail dot com> <20151114215908 dot GJ3818 at brightrain dot aerifal dot cx>
Rich Felker <dalias@libc.org> writes:
> One way to fix this would be to make stdlib.h include a new header,
> sys/real_types.h or something (or the FreeBSD name, sys/_types.h), and
> have sys/types.h just be:
stdlib.h only includes sys/types.h for int32_t, which is also available
through stdint.h. We could add support for __need_int32_t if necessary.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."