summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-30 20:59:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-30 20:59:22 +0000
commit421dfef68ecd8f424f987d75df3c3080108c5925 (patch)
tree9c4b8fae8fc3532ff25f3e633d3cad7dd419b942 /c/src/lib/libc
parentcorrection (diff)
downloadrtems-421dfef68ecd8f424f987d75df3c3080108c5925.tar.bz2
Corrected Linux port for glibc2
Diffstat (limited to 'c/src/lib/libc')
-rw-r--r--c/src/lib/libc/__times.c2
-rw-r--r--c/src/lib/libc/malloc.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libc/__times.c b/c/src/lib/libc/__times.c
index d0b96a8657..3a8812a8b3 100644
--- a/c/src/lib/libc/__times.c
+++ b/c/src/lib/libc/__times.c
@@ -63,6 +63,7 @@ clock_t times(
return _times( ptms );
}
+#if defined(RTEMS_NEWLIB)
clock_t _times_r(
struct _reent *ptr,
struct tms *ptms
@@ -70,3 +71,4 @@ clock_t _times_r(
{
return _times(ptms);
}
+#endif
diff --git a/c/src/lib/libc/malloc.c b/c/src/lib/libc/malloc.c
index 35acf86a2f..1c0c00b732 100644
--- a/c/src/lib/libc/malloc.c
+++ b/c/src/lib/libc/malloc.c
@@ -28,7 +28,7 @@
#include <string.h>
/* for sbrk prototype in linux */
-#if defined(linux)
+#if defined(__linux__)
#define __USE_MISC
#endif
#include <unistd.h> /* sbrk(2) */