mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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:
parent
778176b9d8
commit
655d3e7826
2 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,8 @@
|
|||
#include "parser.h"
|
||||
#include "profile.h"
|
||||
|
||||
typedef int (*comparison_fn_t)(const void *, const void *);
|
||||
|
||||
struct alias_rule {
|
||||
char *from;
|
||||
char *to;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue