diff options
author | dundargoc <gocdundar@gmail.com> | 2023-11-26 21:36:02 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-27 15:50:45 +0100 |
commit | 40139738eb479d0913ec6ce751ca5adfa50ad8c3 (patch) | |
tree | e6b2928fad2afb74235316b31261e2c2d01dc047 /src/nvim/os/unix_defs.h | |
parent | 5b765fcab42308cd4d97a4c37da0c2b1cdb3514d (diff) | |
download | rneovim-40139738eb479d0913ec6ce751ca5adfa50ad8c3.tar.gz rneovim-40139738eb479d0913ec6ce751ca5adfa50ad8c3.tar.bz2 rneovim-40139738eb479d0913ec6ce751ca5adfa50ad8c3.zip |
build: enable IWYU on mac
Diffstat (limited to 'src/nvim/os/unix_defs.h')
-rw-r--r-- | src/nvim/os/unix_defs.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h index fe5dce5655..d2bec7b361 100644 --- a/src/nvim/os/unix_defs.h +++ b/src/nvim/os/unix_defs.h @@ -1,15 +1,18 @@ #pragma once // IWYU pragma: private, include "nvim/os/os_defs.h" -#include <sys/param.h> // IWYU pragma: export -#include <sys/socket.h> // IWYU pragma: export -#include <unistd.h> // IWYU pragma: export +// IWYU pragma: begin_exports +#include <arpa/inet.h> +#include <netdb.h> +#include <netinet/in.h> +#include <pthread.h> +#include <sys/param.h> +#include <sys/socket.h> +#include <unistd.h> #if defined(HAVE_TERMIOS_H) -# include <termios.h> // IWYU pragma: export +# include <termios.h> #endif - -// POSIX.1-2008 says that NAME_MAX should be in here -#include <limits.h> +// IWYU pragma: end_exports #define TEMP_DIR_NAMES { "$TMPDIR", "/tmp", ".", "~" } #define TEMP_FILE_PATH_MAXLEN 256 |