diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2018-03-20 23:01:05 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-05-23 03:14:41 +0300 |
commit | 43370036476707479a03a90e7e1c526dffbaad4b (patch) | |
tree | e8a4ece8eb91640942ae08c69719c0113594ffc6 /linux-headers/asm-generic/bitsperlong.h | |
parent | 9882d3ef3c43fc89a0e1d43d7b52720092bef29b (diff) |
linux-headers: add unistd.h on all arches
This adds unistd.h on ARM64 and MIPS and their dependencies.
Updated to Linux 4.17-rc2.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'linux-headers/asm-generic/bitsperlong.h')
-rw-r--r-- | linux-headers/asm-generic/bitsperlong.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linux-headers/asm-generic/bitsperlong.h b/linux-headers/asm-generic/bitsperlong.h new file mode 100644 index 0000000000..0aac245b6b --- /dev/null +++ b/linux-headers/asm-generic/bitsperlong.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __ASM_GENERIC_BITS_PER_LONG +#define __ASM_GENERIC_BITS_PER_LONG + +/* + * There seems to be no way of detecting this automatically from user + * space, so 64 bit architectures should override this in their + * bitsperlong.h. In particular, an architecture that supports + * both 32 and 64 bit user space must not rely on CONFIG_64BIT + * to decide it, but rather check a compiler provided macro. + */ +#ifndef __BITS_PER_LONG +#define __BITS_PER_LONG 32 +#endif + +#endif /* __ASM_GENERIC_BITS_PER_LONG */ |