Rework autoconf defines.

This commit is contained in:
Ralf Corsepius
2009-09-30 08:20:32 +00:00
parent 00da59e4f2
commit 346725cc9e
8 changed files with 9 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
#include "config.h"
#endif
#ifdef RTEMS_NEWLIB
#if defined(RTEMS_NEWLIB) && !defined(HAVE_CALLOC)
#include "malloc_p.h"
#include <stdlib.h>

View File

@@ -172,7 +172,7 @@ int 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>

View File

@@ -65,7 +65,7 @@ int 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>

View File

@@ -31,7 +31,7 @@ pid_t getpid( void )
* This is the Newlib dependent reentrant version of getpid().
*/
#if defined(RTEMS_NEWLIB)
#if defined(RTEMS_NEWLIB) && !defined(HAVE__GETPID_R)
#include <reent.h>

View File

@@ -19,7 +19,7 @@
* 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 <sys/stat.h>

View File

@@ -8,8 +8,10 @@
#include "config.h"
#endif
#if defined(RTEMS_NEWLIB) && !defined(HAVE_ISSETUGID)
int
issetugid (void)
{
return 0;
}
#endif

View File

@@ -85,7 +85,7 @@ off_t 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>

View File

@@ -55,7 +55,7 @@ ssize_t 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>