From df2831126049a902620b50ebb989e05e7ffed4b4 Mon Sep 17 00:00:00 2001 From: gerald Date: Tue, 15 Feb 2000 21:04:53 +0000 Subject: [PATCH] * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31988 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/ginclude/stddef.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 814f7a8..29fe220 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-02-15 Loren Rittle + + * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD. + 2000-02-15 Kaveh R. Ghazi * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o, diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h index ae1037f..41f8f03 100644 --- a/gcc/ginclude/stddef.h +++ b/gcc/ginclude/stddef.h @@ -269,6 +269,13 @@ typedef long ssize_t; #ifdef _BSD_RUNE_T_ #if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE) typedef _BSD_RUNE_T_ rune_t; +#if defined (__FreeBSD__) +/* Why is this file so hard to maintain properly? In constrast to + the comment above regarding BSD/386 1.1, on FreeBSD for as long + as the symbol has existed, _BSD_RUNE_T_ must not stay defined or + redundant typedefs will occur when stdlib.h is included after this file. */ +#undef _BSD_RUNE_T_ +#endif #endif #endif #endif -- 2.7.4