aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/unix_defs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-27 09:51:26 +0800
committerGitHub <noreply@github.com>2023-11-27 09:51:26 +0800
commit09541d514dd18bf86f673d3784d406236fcbdad8 (patch)
treea719e36a3161d84714cd2f5e6e70f21f5410fb5c /src/nvim/os/unix_defs.h
parent7e2387f41be7cd8304fe48bfa089f2bea155dd5a (diff)
downloadrneovim-09541d514dd18bf86f673d3784d406236fcbdad8.tar.gz
rneovim-09541d514dd18bf86f673d3784d406236fcbdad8.tar.bz2
rneovim-09541d514dd18bf86f673d3784d406236fcbdad8.zip
build(IWYU): replace public-to-public mappings with pragmas (#26237)
Diffstat (limited to 'src/nvim/os/unix_defs.h')
-rw-r--r--src/nvim/os/unix_defs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h
index b90e306932..fe5dce5655 100644
--- a/src/nvim/os/unix_defs.h
+++ b/src/nvim/os/unix_defs.h
@@ -1,10 +1,11 @@
#pragma once
+// IWYU pragma: private, include "nvim/os/os_defs.h"
-#include <sys/param.h>
-#include <sys/socket.h>
-#include <unistd.h>
+#include <sys/param.h> // IWYU pragma: export
+#include <sys/socket.h> // IWYU pragma: export
+#include <unistd.h> // IWYU pragma: export
#if defined(HAVE_TERMIOS_H)
-# include <termios.h>
+# include <termios.h> // IWYU pragma: export
#endif
// POSIX.1-2008 says that NAME_MAX should be in here