summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-01-14 15:21:52 -0800
committerKarolin Seeger <kseeger@samba.org>2013-01-17 09:09:14 +0100
commit5e1f60fbd3b7094d8790d3f089b3d38dd7490227 (patch)
tree80c89e1dab45262d92632d291626eb13f359b1ce
parentafb78ae9c048079c933eb6f6e7adcaf1ad40e7c2 (diff)
downloadsamba-5e1f60fbd3b7094d8790d3f089b3d38dd7490227.tar.gz
lib/replace: Include sys/ucontext.h if available.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 9a21bc35c565210767e71f4bc03a558fe61bdbc8)
-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 f0c3bdccab3..146c61a0947 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