mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
Merge aa_status: Fix build issue with musl
add limits.h aa_status.c:269:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'? | 269 | real_exe = calloc(PATH_MAX + 1, sizeof(char)); MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/647 Signed-off-by: Armin Kuster [akuster808@gmail.com](mailto:akuster808@gmail.com) Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
commit
05acf374b1
@ -10,6 +10,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
@ -54,7 +54,7 @@ endif
|
|||||||
CPPFLAGS += -D_GNU_SOURCE
|
CPPFLAGS += -D_GNU_SOURCE
|
||||||
|
|
||||||
STDLIB_INCLUDE:="\#include <stdlib.h>"
|
STDLIB_INCLUDE:="\#include <stdlib.h>"
|
||||||
HAVE_REALLOCARRAY:=$(shell echo $(STDLIB_INCLUDE) | cpp ${CPPFLAGS} | grep -q reallocarray && echo true)
|
HAVE_REALLOCARRAY:=$(shell echo $(STDLIB_INCLUDE) | ${CPP} ${CPPFLAGS} | grep -q reallocarray && echo true)
|
||||||
|
|
||||||
WARNINGS = -Wall
|
WARNINGS = -Wall
|
||||||
CXX_WARNINGS = ${WARNINGS} ${EXTRA_WARNINGS}
|
CXX_WARNINGS = ${WARNINGS} ${EXTRA_WARNINGS}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user