summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-14 22:44:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-14 22:44:49 +0000
commit4381e50e1ee26dca661c9f5073288955e04f648d (patch)
treea1c1770bcf6b9fe1e948764df8a57a70749a095c
parent665335581b5cb95fc1cf74d952ab13551cd97ec1 (diff)
downloadrtems-4381e50e1ee26dca661c9f5073288955e04f648d.tar.bz2
Ralf Corsepius suggested a way to get rid of UNIX compiler files and use gcc-target-default.cfg
-rw-r--r--c/src/exec/score/cpu/unix/Makefile.in2
-rw-r--r--c/src/exec/score/cpu/unix/cpu.c1
-rw-r--r--c/src/lib/libbsp/unix/posix/startup/Makefile.in2
-rw-r--r--cpukit/score/cpu/unix/cpu.c1
-rw-r--r--make/custom/Linux-posix.cfg3
5 files changed, 4 insertions, 5 deletions
diff --git a/c/src/exec/score/cpu/unix/Makefile.in b/c/src/exec/score/cpu/unix/Makefile.in
index 45aa102ed1..ea8eaad2c6 100644
--- a/c/src/exec/score/cpu/unix/Makefile.in
+++ b/c/src/exec/score/cpu/unix/Makefile.in
@@ -34,7 +34,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
DEFINES +=
CPPFLAGS +=
-CFLAGS += $(CFLAGS_OS_V) -DCPU_SYNC_IO
+CFLAGS += $(CFLAGS_OS_V) -DCPU_SYNC_IO $(LIBC_DEFINES)
LD_PATHS +=
LD_LIBS +=
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c
index 6eb338f991..5b927b7a40 100644
--- a/c/src/exec/score/cpu/unix/cpu.c
+++ b/c/src/exec/score/cpu/unix/cpu.c
@@ -243,7 +243,6 @@ void _CPU_Sync_io_Init()
unsigned32 _CPU_ISR_Get_level( void )
{
sigset_t old_mask;
- sigset_t new_mask;
#if defined(__linux__)
sigemptyset( &old_mask );
diff --git a/c/src/lib/libbsp/unix/posix/startup/Makefile.in b/c/src/lib/libbsp/unix/posix/startup/Makefile.in
index 922b5940bf..a6117e64d4 100644
--- a/c/src/lib/libbsp/unix/posix/startup/Makefile.in
+++ b/c/src/lib/libbsp/unix/posix/startup/Makefile.in
@@ -38,7 +38,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
DEFINES +=
CPPFLAGS +=
-CFLAGS +=
+CFLAGS += $(LIBC_DEFINES)
LD_PATHS +=
LD_LIBS +=
diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c
index 6eb338f991..5b927b7a40 100644
--- a/cpukit/score/cpu/unix/cpu.c
+++ b/cpukit/score/cpu/unix/cpu.c
@@ -243,7 +243,6 @@ void _CPU_Sync_io_Init()
unsigned32 _CPU_ISR_Get_level( void )
{
sigset_t old_mask;
- sigset_t new_mask;
#if defined(__linux__)
sigemptyset( &old_mask );
diff --git a/make/custom/Linux-posix.cfg b/make/custom/Linux-posix.cfg
index 8327c170f0..69dde7c2d8 100644
--- a/make/custom/Linux-posix.cfg
+++ b/make/custom/Linux-posix.cfg
@@ -25,7 +25,8 @@ CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
RTEMS_USE_NEWLIB=no
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
-LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
+LIBC_DEFINES =-D_POSIX_C_SOURCE
+LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
# The following define the memory reserved in the executable for the
# RTEMS Workspace and the C Program Heap.