forked from Imagelibrary/rtems
Rework autoconf defines.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RTEMS_NEWLIB
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE_CALLOC)
|
||||||
#include "malloc_p.h"
|
#include "malloc_p.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ int fcntl(
|
|||||||
* This is the Newlib dependent reentrant version of fcntl().
|
* This is the Newlib dependent reentrant version of fcntl().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FCNTL_R)
|
||||||
|
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ int fstat(
|
|||||||
* This is the Newlib dependent reentrant version of fstat().
|
* This is the Newlib dependent reentrant version of fstat().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FSTAT_R)
|
||||||
|
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ pid_t getpid( void )
|
|||||||
* This is the Newlib dependent reentrant version of getpid().
|
* This is the Newlib dependent reentrant version of getpid().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE__GETPID_R)
|
||||||
|
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
* This is the Newlib dependent reentrant version of isatty().
|
* This is the Newlib dependent reentrant version of isatty().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE__ISATTY_R)
|
||||||
|
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
@@ -8,8 +8,10 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE_ISSETUGID)
|
||||||
int
|
int
|
||||||
issetugid (void)
|
issetugid (void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ off_t lseek(
|
|||||||
* This is the Newlib dependent reentrant version of lseek().
|
* This is the Newlib dependent reentrant version of lseek().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE__LSEEK_R)
|
||||||
|
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ ssize_t read(
|
|||||||
* This is the Newlib dependent reentrant version of read().
|
* This is the Newlib dependent reentrant version of read().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE__READ_R)
|
||||||
|
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user