projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7e404c
)
Fix compilation error on OS-X
author
Matt Caswell
<matt@openssl.org>
Fri, 9 Oct 2015 15:32:07 +0000
(16:32 +0100)
committer
Matt Caswell
<matt@openssl.org>
Fri, 20 Nov 2015 23:35:19 +0000
(23:35 +0000)
OS-X complains if we don't have _XOPEN_SOURCE defined.
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/async/arch/async_posix.h
patch
|
blob
|
history
diff --git
a/crypto/async/arch/async_posix.h
b/crypto/async/arch/async_posix.h
index 0e6a0a06625b223263fa793e26eb5c6a83ed35fa..aac12f16443e944523e10318f3ac7eddcec40dc7 100644
(file)
--- a/
crypto/async/arch/async_posix.h
+++ b/
crypto/async/arch/async_posix.h
@@
-61,6
+61,12
@@
# define ASYNC_POSIX
# define ASYNC_ARCH
+/*
+ * Some platforms complain (e.g. OS-X) that setcontext/getcontext/makecontext
+ * are deprecated without this defined
+ */
+# define _XOPEN_SOURCE
+
# include <ucontext.h>
# include <setjmp.h>
# include "e_os.h"