summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-08-20 18:47:02 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-08-20 18:47:02 -0500
commit57871880b203d1225065640dbe8c16aa6d0f3c62 (patch)
tree4b5eef8734ee5f02c93c032f850c6d38951f2577 /cpukit/libnetworking
parentmpc55xx/misc/flash_support.c: Properly flush cache when writing. (diff)
downloadrtems-57871880b203d1225065640dbe8c16aa6d0f3c62.tar.bz2
Add configuration to detect toolset has sigaltstack() prototype
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet_internal.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 05e54b272f..567cc8ab3a 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -83,11 +83,13 @@ typedef quad_t * qaddr_t;
typedef void __sighandler_t(int);
typedef __sighandler_t *sig_t; /* type of pointer to a signal function */
#define NSIG 32
-struct sigaltstack {
- char *ss_sp; /* signal stack base */
- int ss_size; /* signal stack length */
- int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */
+#if (__RTEMS_HAVE_DECL_SIGALTSTACK__ == 0)
+struct sigaltstack {
+ char *ss_sp; /* signal stack base */
+ int ss_size; /* signal stack length */
+ int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */
};
+#endif
#ifdef _KERNEL
typedef int boolean_t;