From 6fc973e39bc1fbf2e3457dd765ddec6fb5fc3e48 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 18 Aug 1999 16:49:52 +0000 Subject: Patch from Ralf Corsepius : Here is another fix, which addresses a few more or less severe bugs in configuration and unix/posix: * Configuration fix: c/src/lib/configure.in didn't handle RDBG correctly * Configuration fix: make depend was non-functional in c/src/lib/libc/Makefile.in * Configuration fix: stray comment removed from aclocal/target.m4 * RTEMS fix: termios support for unix/posix now uses the host's headers only (was completely broken). - Don't install RTEMS's newlib sys/termios.h for unix (sys/termios.h apparently is a newlib specific header) - To be able to compile RTEMS's termios.c with glibc2.1, glibc-2.1 needs __USE_MISC, which is a private define from gcc's features.h, being defined only when _BSD_SOURCE of _SVID_SOURCE is defined. RTEMS's termios apparently implements BSD, thus -D_BSD_SOURCE was added to Linux-posix.cfg. - Conflicting definitions for __USE_MISC and _BSD_SOURCE inside of RTEMS codes removed due to definition of _BSD_SOURCE on the toplevel. This fix has been tested with linux/posix (primary glibc2.1 native), linux/posix (secondary libc5 native), sh/gensh1, i386/pc386 and a couple of other bsp's/CPU. To apply: cd patch -p1 < rtems-rc-19990709-9.diff and aclocal -I aclocal && automake && autoconf cd c/src/lib; autoconf or ./autogen --- c/src/lib/include/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c/src/lib/include') diff --git a/c/src/lib/include/Makefile.in b/c/src/lib/include/Makefile.in index 922c821bdd..ea028a043a 100644 --- a/c/src/lib/include/Makefile.in +++ b/c/src/lib/include/Makefile.in @@ -31,7 +31,8 @@ H_FILES = $(H_PIECES:%=$(srcdir)/%.h) SYS_H_PIECES_no_V = ioctl SYS_H_PIECES_yes_V = -SYS_H_PIECES = termios utime $(SYS_H_PIECES_$(HAS_NETWORKING)_V) +@UNIX_FALSE@SYS_H_PIECES = termios +SYS_H_PIECES += utime $(SYS_H_PIECES_$(HAS_NETWORKING)_V) SYS_H_FILES = $(SYS_H_PIECES:%=$(srcdir)/sys/%.h) MOTOROLA_H_PIECES = mc68230 mc68681 -- cgit v1.2.3