commit | 88e4e60a75841db476b765742ea61fc0403abbed | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Nov 08 02:51:00 2022 +0000 |
committer | Elliott Hughes <enh@google.com> | Tue Nov 08 02:51:48 2022 +0000 |
tree | 2c9b6b03fc32cd32ee9f0d164c7e2124d33159ef | |
parent | 09db6416bc061baf686fba2f50de7e96cb262785 [diff] [blame] |
Sync with upstream NetBSD. Test: treehugger Change-Id: Ia82ba4a0c00a47377240e5d9a85dc30deb5ce3b7
diff --git a/libc/upstream-netbsd/android/include/netbsd-compat.h b/libc/upstream-netbsd/android/include/netbsd-compat.h index 5dd086e..a625f06 100644 --- a/libc/upstream-netbsd/android/include/netbsd-compat.h +++ b/libc/upstream-netbsd/android/include/netbsd-compat.h
@@ -43,6 +43,8 @@ #include <stddef.h> int reallocarr(void*, size_t, size_t); +#define __arraycount(a) (sizeof(a) / sizeof(a[0])) + /* Use appropriate shell depending on process's executable. */ __LIBC_HIDDEN__ extern const char* __bionic_get_shell_path(); #define _PATH_BSHELL __bionic_get_shell_path()