aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic/posix_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/asm-generic/posix_types.h')
-rw-r--r--include/uapi/asm-generic/posix_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/posix_types.h b/include/uapi/asm-generic/posix_types.h
index fe74fccf18db..85bbd1160d5e 100644
--- a/include/uapi/asm-generic/posix_types.h
+++ b/include/uapi/asm-generic/posix_types.h
@@ -1,7 +1,12 @@
#ifndef __ASM_GENERIC_POSIX_TYPES_H
#define __ASM_GENERIC_POSIX_TYPES_H
+#if !defined(__arm__) && !defined(__aarch64__)
#include <asm/bitsperlong.h>
+#else
+#include <asm-generic/bitsperlong.h>
+#endif
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc.