tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compat_defs.h / u_longlong_t
----------------------------
revision 1.110
date: 2018-06-11 18:48:24 +0000; author: maya; state: Exp; lines: +5 -1; com
mitid: sW02GrA6eU9awTFA;
Add configure check and fallback definition for u_longlong_t
Should help linux tools compilation of dtrace tools, and not
affect NetBSD.
From Chuck Zmudzinski in current-users, with light modification
by myself.
----------------------------
This revision causes the following problem bootstrapping the tools on macOS:
# compile compat/atoll.lo
cc -O -no-cpp-precomp -I. -I./include -I/Users/thorpej/NetBSD/current/src/tools/compat -I/Users/thorpej/NetBSD/current/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o atoll.lo.o /Users/thorpej/NetBSD/current/src/tools/compat/../../lib/libc/stdlib/atoll.c
In file included from /Users/thorpej/NetBSD/current/src/tools/compat/../../lib/libc/stdlib/atoll.c:33:
In file included from ./nbtool_config.h:885:
/Users/thorpej/NetBSD/current/src/tools/compat/compat_defs.h:72:9: error:
unknown type name 'uint64_t'
typedef uint64_t u_longlong_t;
The standard header that defines ‘uint64_t’ is <stdint.h>, but that isn’t bring brought into scope in this case.
Are we trying to protect against compilers that don’t grok “unsigned long long”?
-- thorpej
Home |
Main Index |
Thread Index |
Old Index