mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Remove checks for flockfile(), etc. declarations
Declarations provided by Newlib since 2002. Update #3409.
This commit is contained in:
@@ -75,11 +75,6 @@ AC_CHECK_FUNCS([creat \
|
||||
AC_CHECK_FUNCS([execl execlp execle execv execvp execve])
|
||||
AC_CHECK_FUNCS([regcomp regexec regerror regfree])
|
||||
|
||||
# Mandated by POSIX, decls not present in some versions of newlib
|
||||
AC_CHECK_DECLS([flockfile],[AC_CHECK_FUNCS([flockfile])],,[#include <stdio.h>])
|
||||
AC_CHECK_DECLS([funlockfile],[AC_CHECK_FUNCS([funlockfile])],,[#include <stdio.h>])
|
||||
AC_CHECK_DECLS([ftrylockfile],[AC_CHECK_FUNCS([ftrylockfile])],,[#include <stdio.h>])
|
||||
|
||||
# Newlib proprietary
|
||||
AC_CHECK_MEMBER([struct _Thread_queue_Queue._name],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <sys/lock.h>])
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FLOCKFILE) && defined(HAVE_DECL_FLOCKFILE)
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FLOCKFILE)
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FTRYLOCKFILE) && defined(HAVE_DECL_FTRYLOCKFILE)
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FTRYLOCKFILE)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FUNLOCKFILE) && defined(HAVE_DECL_FUNLOCKFILE)
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FUNLOCKFILE)
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user