diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/nvim/api/buffer.c | 1 | ||||
-rw-r--r-- | src/nvim/api/vim.c | 1 | ||||
-rw-r--r-- | src/nvim/api/window.c | 1 | ||||
-rw-r--r-- | src/nvim/eval.c | 1 | ||||
-rw-r--r-- | src/nvim/ex_eval.c | 1 | ||||
-rw-r--r-- | src/nvim/keymap.c | 1 | ||||
-rw-r--r-- | src/nvim/mark.c | 1 | ||||
-rw-r--r-- | src/nvim/misc1.c | 1 | ||||
-rw-r--r-- | src/nvim/option.c | 1 | ||||
-rw-r--r-- | src/nvim/os/time.c | 1 | ||||
-rw-r--r-- | src/nvim/regexp_nfa.c | 1 | ||||
-rw-r--r-- | src/nvim/ui.c | 1 | ||||
-rw-r--r-- | third-party/CMakeLists.txt | 2 |
14 files changed, 17 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea577b9986..cd48d53b5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,6 +149,10 @@ if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined") endif() +if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME STREQUAL "SunOS") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined -lsocket") +endif() + if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SIZEOF_VOID_P EQUAL 8) # Required for luajit. set(CMAKE_EXE_LINKER_FLAGS diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index b4a52f97fb..dfc3e501c2 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -4,6 +4,7 @@ #include <stdbool.h> #include <stdint.h> #include <stdlib.h> +#include <limits.h> #include "nvim/api/buffer.h" #include "nvim/api/private/helpers.h" diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index e23a97bfc9..f852c8b561 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -4,6 +4,7 @@ #include <stdbool.h> #include <stdlib.h> #include <string.h> +#include <limits.h> #include "nvim/api/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c index f41dafff17..5034c26c83 100644 --- a/src/nvim/api/window.c +++ b/src/nvim/api/window.c @@ -1,6 +1,7 @@ #include <stdbool.h> #include <stdint.h> #include <stdlib.h> +#include <limits.h> #include "nvim/api/window.h" #include "nvim/api/private/defs.h" diff --git a/src/nvim/eval.c b/src/nvim/eval.c index b826ddcc50..45355bd7ac 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -18,6 +18,7 @@ #include <stdlib.h> #include <stdbool.h> #include <math.h> +#include <limits.h> #include "nvim/lib/klist.h" diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c index cc474d22ff..7a8920e2a0 100644 --- a/src/nvim/ex_eval.c +++ b/src/nvim/ex_eval.c @@ -13,6 +13,7 @@ #include <stdbool.h> #include <stdint.h> #include <inttypes.h> +#include <limits.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index 25a8457aba..2026e08de5 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -5,6 +5,7 @@ #include <assert.h> #include <inttypes.h> +#include <limits.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/mark.c b/src/nvim/mark.c index 228ba3a925..5fee8a875c 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -14,6 +14,7 @@ #include <errno.h> #include <inttypes.h> #include <string.h> +#include <limits.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 19ddf6f82c..bf6443e21e 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -15,6 +15,7 @@ #include <inttypes.h> #include <stdbool.h> #include <string.h> +#include <limits.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/option.c b/src/nvim/option.c index 6cd195cdad..d52b9ebf7a 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -39,6 +39,7 @@ #include <string.h> #include <stdint.h> #include <stdlib.h> +#include <limits.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/os/time.c b/src/nvim/os/time.c index 63570e9a0c..590dfba797 100644 --- a/src/nvim/os/time.c +++ b/src/nvim/os/time.c @@ -2,6 +2,7 @@ #include <stdint.h> #include <stdbool.h> #include <time.h> +#include <limits.h> #include <uv.h> diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 99e9c3afec..fec7100703 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -8,6 +8,7 @@ #include <inttypes.h> #include <stdbool.h> #include <stdint.h> +#include <limits.h> #include "nvim/ascii.h" #include "nvim/misc2.h" diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 97fffa4f4e..62cc662b5b 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -2,6 +2,7 @@ #include <inttypes.h> #include <stdbool.h> #include <string.h> +#include <limits.h> #include "nvim/vim.h" #include "nvim/ui.h" diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 23e63e9163..9cc0df098c 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -239,7 +239,7 @@ if(USE_BUNDLED_LUAROCKS) add_custom_command(OUTPUT ${DEPS_LIB_DIR}/luarocks/rocks/nvim-client COMMAND ${DEPS_BIN_DIR}/luarocks - ARGS build https://raw.githubusercontent.com/neovim/lua-client/fabecc56a7c7a3fc15fe6a1a765b58d61bc8e922/nvim-client-0.0.1-11.rockspec CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER} LIBUV_DIR=${DEPS_INSTALL_DIR} + ARGS build https://raw.githubusercontent.com/neovim/lua-client/8cc5b6090ac61cd0bba53ba984f15792fbb64573/nvim-client-0.0.1-11.rockspec CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER} LIBUV_DIR=${DEPS_INSTALL_DIR} DEPENDS lpeg libuv) add_custom_target(nvim-client DEPENDS ${DEPS_LIB_DIR}/luarocks/rocks/nvim-client) |