diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-08-21 11:27:28 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-08-21 11:27:28 +0200 |
commit | 85ca2f74419f9d0162d8a6f1af5525fbe44c632f (patch) | |
tree | f25cba31b84f76f1feed2f14080885f965ee168e /src/conftest/hooks/reset_seq.c | |
parent | e001cc2b077d014d2e5c0b966bea3125d3e70342 (diff) | |
download | strongswan-85ca2f74419f9d0162d8a6f1af5525fbe44c632f.tar.bz2 strongswan-85ca2f74419f9d0162d8a6f1af5525fbe44c632f.tar.xz |
conftest: Disable reset_seq hook on systems other than Linux
Fixes #386.
Diffstat (limited to 'src/conftest/hooks/reset_seq.c')
-rw-r--r-- | src/conftest/hooks/reset_seq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conftest/hooks/reset_seq.c b/src/conftest/hooks/reset_seq.c index 100977324..a77b10eee 100644 --- a/src/conftest/hooks/reset_seq.c +++ b/src/conftest/hooks/reset_seq.c @@ -36,6 +36,10 @@ #include "hook.h" +/* this hook is currently only supported on Linux (systems like FreeBSD don't + * actually provide an interface to change the sequence numbers of SAs) */ +#ifdef __linux__ + #include <linux/xfrm.h> #include <unistd.h> #include <errno.h> @@ -214,3 +218,5 @@ hook_t *reset_seq_hook_create(char *name) return &this->hook; } + +#endif /* __linux__ */ |