mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
define PATH_MAX when missing from limits.h
Some non-Linux systems do not define PATH_MAX (Hurd). Since I have no interest in supporting a fully dynamic PATH_MAX in AppArmor, work around this by just defining a static value that matches Linux's limits.h value. Signed-off-by: Kees Cook <kees.cook@canonical.com> Acked-By: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
parent
b9bfc10d0f
commit
e9d5d491b8
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@
|
|||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
/* some non-Linux systems do not define a static value */
|
||||
#ifndef PATH_MAX
|
||||
# define PATH_MAX 4096
|
||||
#endif
|
||||
|
||||
#define symbol_version(real, name, version) \
|
||||
__asm__ (".symver " #real "," #name "@" #version)
|
||||
#define default_symbol_version(real, name, version) \
|
||||
|
|
Loading…
Add table
Reference in a new issue