Corrected Linux port for glibc2

This commit is contained in:
Joel Sherrill
1998-01-30 20:59:22 +00:00
parent 243ce5d741
commit 421dfef68e
10 changed files with 16 additions and 7 deletions

View File

@@ -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

View File

@@ -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) */

View File

@@ -27,7 +27,7 @@
#include <fcntl.h>
/* for sbrk prototype in linux */
#if defined(linux)
#if defined(__linux__)
#define __USE_MISC
#endif
#include <unistd.h>

View File

@@ -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

View File

@@ -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) */

View File

@@ -12,7 +12,8 @@
*/
/* for strcasecmp in linux and solaris */
#if defined(linux)
#if defined(__linux__)
#include <features.h>
#define __USE_BSD
#endif
#include <string.h>

View File

@@ -12,7 +12,8 @@
*/
/* for strcasecmp in linux and solaris */
#if defined(linux)
#if defined(__linux__)
#include <features.h>
#define __USE_BSD
#endif
#include <string.h>

View File

@@ -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

View File

@@ -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) */

View File

@@ -12,7 +12,8 @@
*/
/* for strcasecmp in linux and solaris */
#if defined(linux)
#if defined(__linux__)
#include <features.h>
#define __USE_BSD
#endif
#include <string.h>