build/NetBSD: use kinfo_proc2; undef uint64_t (#8197)

closes #8196

For historical reasons, uint64_t and friends are defined both as 
typedefs and macros. Some platforms that do that define the macros as
identity (#define uint64_t uint64_t), others like NetBSD define to the
backing type (#define uint64_t __uint64_t). This is normally
transparent, except when multiple levels of macro expansions are used
inconsistently.
This commit is contained in:
Utkarsh Anand
2018-03-29 14:07:49 +05:30
committed by Justin M. Keyes
parent bbca3142e8
commit e9cf40f2b6
2 changed files with 18 additions and 1 deletions

View File

@@ -8,6 +8,11 @@
#include "nvim/api/private/dispatch.h"
#include "nvim/bufhl_defs.h"
#if defined(__NetBSD__)
# undef uint64_t
# define uint64_t uint64_t
#endif
#define MAP_DECLS(T, U) \
KHASH_DECLARE(T##_##U##_map, T, U) \
\