summaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-12-04 14:50:55 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-12-04 14:50:55 +0000
commit1784a6d64af89efaff30f4322d298a627e3100ec (patch)
tree2cd30ba418796642fde7f9892079726114add4af /stand
parent0e1d7c25c5ab4014eb5ddd7676a1b64041a57d17 (diff)
downloadsrc-test-1784a6d64af89efaff30f4322d298a627e3100ec.tar.gz
src-test-1784a6d64af89efaff30f4322d298a627e3100ec.zip
Fix definition of int64_t and uint64_t when long is 64-bit. This gets the kernel
shim code in line with the rest of the kernel, sys/x86/include/_types.h. MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
Notes
Notes: svn path=/head/; revision=368329
Diffstat (limited to 'stand')
-rw-r--r--stand/kshim/bsd_kernel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/stand/kshim/bsd_kernel.h b/stand/kshim/bsd_kernel.h
index 89d87121c63e4..11efaf2d824b4 100644
--- a/stand/kshim/bsd_kernel.h
+++ b/stand/kshim/bsd_kernel.h
@@ -208,9 +208,17 @@ typedef unsigned int uint32_t;
#define _INT32_T_DECLARED
typedef signed int int32_t;
#define _UINT64_T_DECLARED
+#ifndef __LP64__
typedef unsigned long long uint64_t;
+#else
+typedef unsigned long uint64_t;
+#endif
#define _INT16_T_DECLARED
+#ifndef __LP64__
typedef signed long long int64_t;
+#else
+typedef signed long int64_t;
+#endif
typedef uint16_t uid_t;
typedef uint16_t gid_t;