summaryrefslogtreecommitdiffstats
path: root/make/custom/Linux-posix.cfg
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-08-18 16:49:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-08-18 16:49:52 +0000
commit6fc973e39bc1fbf2e3457dd765ddec6fb5fc3e48 (patch)
treec276f71c902cbfb201ef478cc03c356e50070281 /make/custom/Linux-posix.cfg
parentea562ee977d4b48500a9b117e543e9c4ae0eb05e (diff)
downloadrtems-6fc973e39bc1fbf2e3457dd765ddec6fb5fc3e48.tar.bz2
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
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 <srcdir> patch -p1 < rtems-rc-19990709-9.diff and aclocal -I aclocal && automake && autoconf cd c/src/lib; autoconf or ./autogen
Diffstat (limited to 'make/custom/Linux-posix.cfg')
-rw-r--r--make/custom/Linux-posix.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/make/custom/Linux-posix.cfg b/make/custom/Linux-posix.cfg
index ad78430c6e..22597b84b9 100644
--- a/make/custom/Linux-posix.cfg
+++ b/make/custom/Linux-posix.cfg
@@ -24,6 +24,7 @@ LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
LIBC_DEFINES += -DWORKSPACE_MB=2
LIBC_DEFINES += -DHEAPSPACE_MB=1
+DEFINES += -D_BSD_SOURCE
# Define this to yes if C++ is included in the development environment
# This requires that at least the GNU C++ compiler and libg++ be installed.