forked from Imagelibrary/rtems
Corrected Linux port for glibc2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) */
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) */
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) */
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user