diff options
author | Zhang Ning <ning.a.zhang@intel.com> | 2019-04-04 05:22:30 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-04-21 06:25:26 +0300 |
commit | 74bb7a56ea6422afb9e7a3f7203e5f57c2f03545 (patch) | |
tree | 30c7729d8a64412108f622d721f8dc38140ad701 /compel/src | |
parent | 560590733396f8e45bd053b03b4f4b586b4a8d8f (diff) |
Android NDK: UNIX_PATH_MAX is defined in un.h
in Android NDK, UNIX_PATH_MAX is already defined,
add ifndef to check.
linux/un.h:
22: #define UNIX_PATH_MAX 108
Cc: Chen Hu <hu1.chen@intel.com>
Signed-off-by: Zhang Ning <ning.a.zhang@intel.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Diffstat (limited to 'compel/src')
-rw-r--r-- | compel/src/lib/infect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compel/src/lib/infect.c b/compel/src/lib/infect.c index abf3a0ab3..b7db6cf97 100644 --- a/compel/src/lib/infect.c +++ b/compel/src/lib/infect.c @@ -33,8 +33,10 @@ #include "common/scm.h" #include "common/scm-code.c" +#ifndef UNIX_PATH_MAX #define UNIX_PATH_MAX (sizeof(struct sockaddr_un) - \ (size_t)((struct sockaddr_un *) 0)->sun_path) +#endif #define PARASITE_STACK_SIZE (16 << 10) |