diff options
Diffstat (limited to 'freebsd/contrib/pf/pfctl/pfctl_optimize.c')
-rw-r--r-- | freebsd/contrib/pf/pfctl/pfctl_optimize.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl_optimize.c b/freebsd/contrib/pf/pfctl/pfctl_optimize.c index 8b459361..1872fa4e 100644 --- a/freebsd/contrib/pf/pfctl/pfctl_optimize.c +++ b/freebsd/contrib/pf/pfctl/pfctl_optimize.c @@ -18,6 +18,12 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifdef __rtems__ +#include <machine/rtems-bsd-program.h> + +/* We need some functions from kernel space. */ +#define pf_find_or_create_ruleset _bsd_pf_find_or_create_ruleset +#endif /* __rtems__ */ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -1692,4 +1698,6 @@ superblock_free(struct pfctl *pf, struct superblock *block) superblock_free(pf, block->sb_profiled_block); free(block); } - +#ifdef __rtems__ +#include "pfctl_optimize-data.h" +#endif /* __rtems__ */ |