diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/libcsupport/src/utsname.c | 2 | ||||
-rw-r--r-- | c/src/exec/posix/src/utsname.c | 2 | ||||
-rw-r--r-- | c/src/exec/score/cpu/unix/cpu.c | 3 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/go32/clock/rtc.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/go32/console/outch.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/unix/posix/timer/timer.c | 2 | ||||
-rw-r--r-- | c/src/lib/libc/utsname.c | 2 |
7 files changed, 10 insertions, 5 deletions
diff --git a/c/src/exec/libcsupport/src/utsname.c b/c/src/exec/libcsupport/src/utsname.c index 15bd2665f6..b3ec71e87f 100644 --- a/c/src/exec/libcsupport/src/utsname.c +++ b/c/src/exec/libcsupport/src/utsname.c @@ -21,7 +21,7 @@ int uname( { /* XXX: Here is what Solaris returns... sysname = SunOS - nodename = merlin + nodename = node_name release = 5.3 version = Generic_101318-12 machine = sun4m diff --git a/c/src/exec/posix/src/utsname.c b/c/src/exec/posix/src/utsname.c index 15bd2665f6..b3ec71e87f 100644 --- a/c/src/exec/posix/src/utsname.c +++ b/c/src/exec/posix/src/utsname.c @@ -21,7 +21,7 @@ int uname( { /* XXX: Here is what Solaris returns... sysname = SunOS - nodename = merlin + nodename = node_name release = 5.3 version = Generic_101318-12 machine = sun4m diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c index a7b2140742..347882ddcc 100644 --- a/c/src/exec/score/cpu/unix/cpu.c +++ b/c/src/exec/score/cpu/unix/cpu.c @@ -21,10 +21,13 @@ #include <rtems/score/interr.h> #if defined(solaris2) +/* #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 3 #undef __STRICT_ANSI__ #define __STRICT_ANSI__ +*/ +#define __EXTENSIONS__ #endif #if defined(linux) diff --git a/c/src/lib/libbsp/i386/go32/clock/rtc.c b/c/src/lib/libbsp/i386/go32/clock/rtc.c index 6a28c229ad..38e9497000 100644 --- a/c/src/lib/libbsp/i386/go32/clock/rtc.c +++ b/c/src/lib/libbsp/i386/go32/clock/rtc.c @@ -36,7 +36,7 @@ #include <rtems.h> -#include <memory.h> +#include <string.h> void init_rtc( void ) { diff --git a/c/src/lib/libbsp/i386/go32/console/outch.c b/c/src/lib/libbsp/i386/go32/console/outch.c index 07cfc0625b..fa4422e1b3 100644 --- a/c/src/lib/libbsp/i386/go32/console/outch.c +++ b/c/src/lib/libbsp/i386/go32/console/outch.c @@ -5,7 +5,7 @@ #include <go32.h> #include <bsp.h> -#include <memory.h> +#include <string.h> #define MAX_COL 80 #define MAX_ROW 50 diff --git a/c/src/lib/libbsp/unix/posix/timer/timer.c b/c/src/lib/libbsp/unix/posix/timer/timer.c index e1b9704072..abe7e6d6fd 100644 --- a/c/src/lib/libbsp/unix/posix/timer/timer.c +++ b/c/src/lib/libbsp/unix/posix/timer/timer.c @@ -16,6 +16,8 @@ * $Id$ */ +/* For solaris 2.4 */ +#define __EXTENSIONS__ #include <bsp.h> #include <time.h> diff --git a/c/src/lib/libc/utsname.c b/c/src/lib/libc/utsname.c index 15bd2665f6..b3ec71e87f 100644 --- a/c/src/lib/libc/utsname.c +++ b/c/src/lib/libc/utsname.c @@ -21,7 +21,7 @@ int uname( { /* XXX: Here is what Solaris returns... sysname = SunOS - nodename = merlin + nodename = node_name release = 5.3 version = Generic_101318-12 machine = sun4m |