[rtems commit] Remove checks for flockfile(), etc. declarations
Sebastian Huber
sebh at rtems.org
Mon Oct 22 06:16:37 UTC 2018
Module: rtems
Branch: master
Commit: 167654e7f0fcf9df5dcd3afef60658c4d63a43a5
Changeset: http://git.rtems.org/rtems/commit/?id=167654e7f0fcf9df5dcd3afef60658c4d63a43a5
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Oct 18 14:45:24 2018 +0200
Remove checks for flockfile(), etc. declarations
Declarations provided by Newlib since 2002.
Update #3409.
---
cpukit/configure.ac | 5 -----
cpukit/libcsupport/src/flockfile.c | 2 +-
cpukit/libcsupport/src/ftrylockfile.c | 2 +-
cpukit/libcsupport/src/funlockfile.c | 2 +-
4 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index ffc8d51..cb7a0a0 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -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>])
diff --git a/cpukit/libcsupport/src/flockfile.c b/cpukit/libcsupport/src/flockfile.c
index 511badd..e924b4e 100644
--- a/cpukit/libcsupport/src/flockfile.c
+++ b/cpukit/libcsupport/src/flockfile.c
@@ -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>
diff --git a/cpukit/libcsupport/src/ftrylockfile.c b/cpukit/libcsupport/src/ftrylockfile.c
index bc567e4..6b62396 100644
--- a/cpukit/libcsupport/src/ftrylockfile.c
+++ b/cpukit/libcsupport/src/ftrylockfile.c
@@ -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>
diff --git a/cpukit/libcsupport/src/funlockfile.c b/cpukit/libcsupport/src/funlockfile.c
index bf409da..3c1efff 100644
--- a/cpukit/libcsupport/src/funlockfile.c
+++ b/cpukit/libcsupport/src/funlockfile.c
@@ -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>
More information about the vc
mailing list