mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: provide typedefs for comparison_fn_t and __free_fn_t
The POSIX standard never defines the typedefs `comparison_fn_t` and `__free_fn_t`, but they are provided by glibc and user in the parsing code. Provide the typedefs ourselves to fix compiling on musl based systems. Signed-off-by: Patrick Steinhardt <ps@pks.im>
This commit is contained in:
committed by
Steve Beattie
parent
778176b9d8
commit
655d3e7826
@@ -25,6 +25,9 @@
|
||||
#include "immunix.h"
|
||||
#include "parser.h"
|
||||
|
||||
typedef int (*comparison_fn_t)(const void *, const void *);
|
||||
typedef void (*__free_fn_t)(void *);
|
||||
|
||||
enum var_type {
|
||||
sd_boolean,
|
||||
sd_set,
|
||||
|
Reference in New Issue
Block a user