Changeset 4b274633 in rtems


Ignore:
Timestamp:
Dec 13, 2011, 6:52:09 AM (7 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
4534ba3
Parents:
6649644
Message:

2011-12-13 Ralf Corsépius <ralf.corsepius@…>

  • configure.ac: Check for getrusage decl.
  • psxgetrusage01/init.c: Fix header file inclusion order. Move configuration section up. Apply HAVE_DECL_GETRUSAGE.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r6649644 r4b274633  
     12011-12-13      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * configure.ac: Check for getrusage decl.
     4        * psxgetrusage01/init.c:
     5        Fix header file inclusion order.
     6        Move configuration section up.
     7        Apply HAVE_DECL_GETRUSAGE.
     8
    192011-12-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
    210
  • testsuites/psxtests/configure.ac

    r6649644 r4b274633  
    5050# Added to pthreads after initial revision.  May not be in toolset
    5151AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
     52
     53# Mandated by POSIX, not declared in some versions of newlib.
     54AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
    5255
    5356# FIXME: adjtime is a non-standardized BSD/Linux extension
  • testsuites/psxtests/psxgetrusage01/init.c

    r6649644 r4b274633  
    1414#endif
    1515
    16 #include <tmacros.h>
    17 #include "test_support.h"
    18 
    1916#include <sys/time.h>
    2017#include <sys/resource.h>
    2118#include <errno.h>
    2219
    23 int getrusage(int who, struct rusage *usage);
     20#if !HAVE_DECL_GETRUSAGE
     21extern int getrusage(int who, struct rusage *usage);
     22#endif
     23
     24#include <tmacros.h>
     25#include "test_support.h"
     26
     27/* configuration information */
     28
     29#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     30#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     31
     32#define CONFIGURE_MAXIMUM_TASKS             1
     33#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     34
     35#define CONFIGURE_INIT
     36
     37#include <rtems/confdefs.h>
    2438
    2539rtems_task Init(
     
    6680  rtems_test_exit(0);
    6781}
    68 
    69 /* configuration information */
    70 
    71 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    72 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    73 
    74 #define CONFIGURE_MAXIMUM_TASKS             1
    75 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    76 
    77 #define CONFIGURE_INIT
    78 
    79 #include <rtems/confdefs.h>
    80 /* end of file */
Note: See TracChangeset for help on using the changeset viewer.