conftest: Disable reset_seq hook on systems other than Linux
authorTobias Brunner <tobias@strongswan.org>
Wed, 21 Aug 2013 09:27:28 +0000 (11:27 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Aug 2013 09:27:28 +0000 (11:27 +0200)
Fixes #386.

src/conftest/hooks/reset_seq.c

index 1009773..a77b10e 100644 (file)
 
 #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__ */