2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org>

*  configure.ac: Require time.h to provide CLOCK_PROCESS_CPUTIME_ID,
	CLOCK_THREAD_CPUTIME_ID.
This commit is contained in:
Ralf Corsepius
2011-05-18 08:59:44 +00:00
parent 4f599ed99f
commit 7383b64448
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require time.h to provide CLOCK_PROCESS_CPUTIME_ID,
CLOCK_THREAD_CPUTIME_ID.
2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* sapi/Makefile.am: Reformat. * sapi/Makefile.am: Reformat.

View File

@@ -66,6 +66,10 @@ 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([funlockfile],[AC_CHECK_FUNCS([funlockfile])],,[#include <stdio.h>])
AC_CHECK_DECLS([ftrylockfile],[AC_CHECK_FUNCS([ftrylockfile])],,[#include <stdio.h>]) AC_CHECK_DECLS([ftrylockfile],[AC_CHECK_FUNCS([ftrylockfile])],,[#include <stdio.h>])
# Mandated by POSIX, older newlibs bogusly provided CLOCK_PROCESS_CPUTIME+CLOCK_THREAD_CPUTIME
AC_CHECK_DECL([CLOCK_PROCESS_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_PROCESS_CPUTIME_ID])],[#include <time.h>])
AC_CHECK_DECL([CLOCK_THREAD_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_THREAD_CPUTIME_ID])],[#include <time.h>])
# Mandated by POSIX, decls not present in some versions of newlib, # Mandated by POSIX, decls not present in some versions of newlib,
# some versions stubbed in newlib's rtems crt0 # some versions stubbed in newlib's rtems crt0
RTEMS_CHECK_FUNC([seteuid],[#include <unistd.h>]) RTEMS_CHECK_FUNC([seteuid],[#include <unistd.h>])