summaryrefslogtreecommitdiff
path: root/lib/replace/system
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-01-14 15:21:52 -0800
committerStefan Metzmacher <metze@samba.org>2013-01-15 08:28:45 +0100
commit0258138e207c8f3e8bb05a47599aa04b4e9567cf (patch)
tree75cbda05aeb2e5da2bd1ec4b053750887af4e6bf /lib/replace/system
parentfe6e323addb967b392bfd406c499a6f67fcdc152 (diff)
downloadsamba-0258138e207c8f3e8bb05a47599aa04b4e9567cf.tar.gz
samba-0258138e207c8f3e8bb05a47599aa04b4e9567cf.tar.bz2
samba-0258138e207c8f3e8bb05a47599aa04b4e9567cf.zip
lib/replace: Include sys/ucontext.h if available.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/replace/system')
-rw-r--r--lib/replace/system/wait.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/system/wait.h b/lib/replace/system/wait.h
index f0c3bdccab..146c61a094 100644
--- a/lib/replace/system/wait.h
+++ b/lib/replace/system/wait.h
@@ -40,6 +40,10 @@
#include <setjmp.h>
#endif
+#ifdef HAVE_SYS_UCONTEXT_H
+#include <sys/ucontext.h>
+#endif
+
#if !defined(HAVE_SIG_ATOMIC_T_TYPE)
typedef int sig_atomic_t;
#endif