Changeset 5787188 in rtems


Ignore:
Timestamp:
Aug 20, 2014, 11:47:02 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
46265063
Parents:
dc661c8
Message:

Add configuration to detect toolset has sigaltstack() prototype

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/configure.ac

    rdc661c8 r5787188  
    117117AC_CHECK_HEADERS([sys/cpuset.h])
    118118
     119# This was added to newlib in August 2014 to improve conformance.
     120# Disable use of internal definition if it is present.
     121RTEMS_CHECK_FUNC([sigaltstack],[
     122  #define _GNU_SOURCE
     123  #include <signal.h>])
     124
    119125# Mandated by POSIX, not declared in some versions of newlib.
    120126AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
     
    236242  [1],
    237243  [indicate if <sys/cpuset.h> is present in toolset])
     244
     245## Header file differences that need to be known in .h after install
     246RTEMS_CPUOPT([__RTEMS_HAVE_DECL_SIGALTSTACK__],
     247  [test x"${ac_cv_have_decl_sigaltstack}" = x"yes"],
     248  [1],
     249  [indicate if <signal.h> in toolset has sigaltstack()])
    238250
    239251## This improves both the size and coverage analysis.
  • cpukit/libnetworking/rtems/rtems_bsdnet_internal.h

    rdc661c8 r5787188  
    8484typedef __sighandler_t  *sig_t; /* type of pointer to a signal function */
    8585#define NSIG    32
    86 struct  sigaltstack {
    87         char    *ss_sp;                 /* signal stack base */
    88         int     ss_size;                /* signal stack length */
    89         int     ss_flags;               /* SS_DISABLE and/or SS_ONSTACK */
     86#if (__RTEMS_HAVE_DECL_SIGALTSTACK__ == 0)
     87struct sigaltstack {
     88       char    *ss_sp;                 /* signal stack base */
     89       int     ss_size;                /* signal stack length */
     90       int     ss_flags;               /* SS_DISABLE and/or SS_ONSTACK */
    9091};
     92#endif
    9193
    9294#ifdef _KERNEL
Note: See TracChangeset for help on using the changeset viewer.