From 521869335b5f442b01de832ecaf048680ff8d761 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 30 Aug 2010 16:58:13 +0000 Subject: =?UTF-8?q?2010-08-30=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * configure.ac: AC_CHECK_DECLS([seteuid]). * psximfs02/init.c: Provide decl for seteuid if not provided by libc. --- testsuites/psxtests/configure.ac | 4 ++++ testsuites/psxtests/psximfs02/init.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'testsuites') diff --git a/testsuites/psxtests/configure.ac b/testsuites/psxtests/configure.ac index 82c56e3dbf..5131ac98a6 100644 --- a/testsuites/psxtests/configure.ac +++ b/testsuites/psxtests/configure.ac @@ -53,6 +53,10 @@ AC_CHECK_DECLS([adjtime],[],[],[[#include ]]) # RTEMS provides a stub, despite newlib doesn't have sys/mman.h AC_CHECK_DECLS([mprotect],[],[],[[#include ]]) +# FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h +# RTEMS provides it, despite newlib doesn't declare it. +AC_CHECK_DECLS([seteuid],[],[],[#include ]) + # FIXME: We should get rid of this. It's a cludge. AC_CHECK_SIZEOF([off_t]) diff --git a/testsuites/psxtests/psximfs02/init.c b/testsuites/psxtests/psximfs02/init.c index 861bf0cca5..a9c79a0dd5 100644 --- a/testsuites/psxtests/psximfs02/init.c +++ b/testsuites/psxtests/psximfs02/init.c @@ -20,6 +20,10 @@ #include #include +#if !HAVE_DECL_SETEUID +extern int seteuid(uid_t euid); +#endif + void IMFS_dump( void ); rtems_task Init( rtems_task_argument argument -- cgit v1.2.3