summaryrefslogtreecommitdiff
path: root/rc.h
diff options
context:
space:
mode:
Diffstat (limited to 'rc.h')
-rw-r--r--rc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc.h b/rc.h
index e540117..bfe11ff 100644
--- a/rc.h
+++ b/rc.h
@@ -36,6 +36,14 @@
#endif /*HAVE_SETPGRP */
+#if HAVE_SIGSETJMP
+/* Smells like POSIX. */
+#else
+/* Assume BSD. Probably fails on traditional SysV. */
+#define sigsetjmp setjmp
+#define siglongjmp longjmp
+#endif /* HAVE_SIGSETJMP */
+
typedef void builtin_t(char **);
typedef struct Block Block;
typedef struct Dup Dup;