conftest: Disable reset_seq hook on systems other than Linux
Fixes #386.
This commit is contained in:
@@ -36,6 +36,10 @@
|
|||||||
|
|
||||||
#include "hook.h"
|
#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 <linux/xfrm.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -214,3 +218,5 @@ hook_t *reset_seq_hook_create(char *name)
|
|||||||
|
|
||||||
return &this->hook;
|
return &this->hook;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* __linux__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user