aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/json_functions_spec.lua
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2016-05-14 08:44:37 -0400
committerJohn Szakmeister <john@szakmeister.net>2016-05-14 12:47:20 -0400
commitd3a904309b8a685ebb0540c04f8825b2dda3e4ff (patch)
tree694932003d28afd33c4992b743ef68914865e82b /test/functional/eval/json_functions_spec.lua
parentd02cfe80618bb85cc1cc4a19a9cfc69ae64b98af (diff)
downloadrneovim-d3a904309b8a685ebb0540c04f8825b2dda3e4ff.tar.gz
rneovim-d3a904309b8a685ebb0540c04f8825b2dda3e4ff.tar.bz2
rneovim-d3a904309b8a685ebb0540c04f8825b2dda3e4ff.zip
Fix be64toh() detection on BSDs.
This was noticed due to a user issue (#4750) when building Neovim 0.1.4 via ports. The crux of the issue is that we did not detect the be64toh() macro, because there is no endian.h on FreeBSD (along with several other BSDs). So we were defaulting to our builtin version of be64toh(). However, it appears that sys/endian.h was being picked up by an include (likely msgpack.h) and so be64toh() was actually defined and corrupting our definition of it. So the answer here was to use the correct include file in our check, and export that information in the config.h. Then we use that information to include the right header in shada.c. This fixes #4750.
Diffstat (limited to 'test/functional/eval/json_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions