forked from Imagelibrary/rtems
Corrected Linux port for glibc2
This commit is contained in:
@@ -63,6 +63,7 @@ clock_t times(
|
|||||||
return _times( ptms );
|
return _times( ptms );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(RTEMS_NEWLIB)
|
||||||
clock_t _times_r(
|
clock_t _times_r(
|
||||||
struct _reent *ptr,
|
struct _reent *ptr,
|
||||||
struct tms *ptms
|
struct tms *ptms
|
||||||
@@ -70,3 +71,4 @@ clock_t _times_r(
|
|||||||
{
|
{
|
||||||
return _times(ptms);
|
return _times(ptms);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* for sbrk prototype in linux */
|
/* for sbrk prototype in linux */
|
||||||
#if defined(linux)
|
#if defined(__linux__)
|
||||||
#define __USE_MISC
|
#define __USE_MISC
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h> /* sbrk(2) */
|
#include <unistd.h> /* sbrk(2) */
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
/* for sbrk prototype in linux */
|
/* for sbrk prototype in linux */
|
||||||
#if defined(linux)
|
#if defined(__linux__)
|
||||||
#define __USE_MISC
|
#define __USE_MISC
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ clock_t times(
|
|||||||
return _times( ptms );
|
return _times( ptms );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(RTEMS_NEWLIB)
|
||||||
clock_t _times_r(
|
clock_t _times_r(
|
||||||
struct _reent *ptr,
|
struct _reent *ptr,
|
||||||
struct tms *ptms
|
struct tms *ptms
|
||||||
@@ -70,3 +71,4 @@ clock_t _times_r(
|
|||||||
{
|
{
|
||||||
return _times(ptms);
|
return _times(ptms);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* for sbrk prototype in linux */
|
/* for sbrk prototype in linux */
|
||||||
#if defined(linux)
|
#if defined(__linux__)
|
||||||
#define __USE_MISC
|
#define __USE_MISC
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h> /* sbrk(2) */
|
#include <unistd.h> /* sbrk(2) */
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* for strcasecmp in linux and solaris */
|
/* for strcasecmp in linux and solaris */
|
||||||
#if defined(linux)
|
#if defined(__linux__)
|
||||||
|
#include <features.h>
|
||||||
#define __USE_BSD
|
#define __USE_BSD
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* for strcasecmp in linux and solaris */
|
/* for strcasecmp in linux and solaris */
|
||||||
#if defined(linux)
|
#if defined(__linux__)
|
||||||
|
#include <features.h>
|
||||||
#define __USE_BSD
|
#define __USE_BSD
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ clock_t times(
|
|||||||
return _times( ptms );
|
return _times( ptms );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(RTEMS_NEWLIB)
|
||||||
clock_t _times_r(
|
clock_t _times_r(
|
||||||
struct _reent *ptr,
|
struct _reent *ptr,
|
||||||
struct tms *ptms
|
struct tms *ptms
|
||||||
@@ -70,3 +71,4 @@ clock_t _times_r(
|
|||||||
{
|
{
|
||||||
return _times(ptms);
|
return _times(ptms);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* for sbrk prototype in linux */
|
/* for sbrk prototype in linux */
|
||||||
#if defined(linux)
|
#if defined(__linux__)
|
||||||
#define __USE_MISC
|
#define __USE_MISC
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h> /* sbrk(2) */
|
#include <unistd.h> /* sbrk(2) */
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* for strcasecmp in linux and solaris */
|
/* for strcasecmp in linux and solaris */
|
||||||
#if defined(linux)
|
#if defined(__linux__)
|
||||||
|
#include <features.h>
|
||||||
#define __USE_BSD
|
#define __USE_BSD
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user