diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2023-08-10 10:01:03 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-08-14 09:10:29 +0200 |
commit | 10a87728636492afc48bbb8eee7d49f3f653293e (patch) | |
tree | f97cb3fe15b0217d0b7e80c4a3d40f2ec58e9bc4 /sal/osl | |
parent | 59c2e114f76247158a0da9dcf91d6449d5d61224 (diff) |
tdf#146619 Remove unused includes from sal/ [headers]
Change-Id: I8fae71e5053950441a2e0920590264c2cb858924
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155546
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/file.cxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/file_error_transl.hxx | 1 | ||||
-rw-r--r-- | sal/osl/unx/file_impl.hxx | 1 | ||||
-rw-r--r-- | sal/osl/unx/file_path_helper.cxx | 1 | ||||
-rw-r--r-- | sal/osl/unx/file_path_helper.hxx | 1 | ||||
-rw-r--r-- | sal/osl/unx/file_stat.cxx | 1 | ||||
-rw-r--r-- | sal/osl/unx/process_impl.cxx | 1 | ||||
-rw-r--r-- | sal/osl/unx/secimpl.hxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/sockimpl.hxx | 5 | ||||
-rw-r--r-- | sal/osl/unx/uunxapi.cxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/uunxapi.hxx | 4 | ||||
-rw-r--r-- | sal/osl/w32/path_helper.hxx | 2 | ||||
-rw-r--r-- | sal/osl/w32/thread.hxx | 2 |
13 files changed, 10 insertions, 15 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 3bdb4a50b05a..4b1313586e81 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -48,6 +48,8 @@ #include <pthread.h> #include <sys/file.h> #include <sys/mman.h> +#include <sys/stat.h> +#include <unistd.h> #if defined(MACOSX) diff --git a/sal/osl/unx/file_error_transl.hxx b/sal/osl/unx/file_error_transl.hxx index 81d972032346..67e6b5459046 100644 --- a/sal/osl/unx/file_error_transl.hxx +++ b/sal/osl/unx/file_error_transl.hxx @@ -21,7 +21,6 @@ #define INCLUDED_SAL_OSL_UNX_FILE_ERROR_TRANSL_HXX #include <osl/file.h> -#include <sal/types.h> /** Translate errno's to osl file errors diff --git a/sal/osl/unx/file_impl.hxx b/sal/osl/unx/file_impl.hxx index 2b374cb68ac0..4a9a90d4160f 100644 --- a/sal/osl/unx/file_impl.hxx +++ b/sal/osl/unx/file_impl.hxx @@ -21,7 +21,6 @@ #define INCLUDED_SAL_OSL_UNX_FILE_IMPL_HXX #include <osl/file.h> -#include <stddef.h> #include <sys/types.h> #include <rtl/string.hxx> diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx index a8ee5238f95a..472ab880af93 100644 --- a/sal/osl/unx/file_path_helper.cxx +++ b/sal/osl/unx/file_path_helper.cxx @@ -21,6 +21,7 @@ #include <cassert> #include <utility> +#include <unistd.h> #include "file_path_helper.hxx" #include "uunxapi.hxx" diff --git a/sal/osl/unx/file_path_helper.hxx b/sal/osl/unx/file_path_helper.hxx index e210b27a3866..cbafb7482cba 100644 --- a/sal/osl/unx/file_path_helper.hxx +++ b/sal/osl/unx/file_path_helper.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_SAL_OSL_UNX_FILE_PATH_HELPER_HXX #define INCLUDED_SAL_OSL_UNX_FILE_PATH_HELPER_HXX -#include <sal/types.h> #include <rtl/ustring.h> #include <rtl/ustring.hxx> diff --git a/sal/osl/unx/file_stat.cxx b/sal/osl/unx/file_stat.cxx index f19b177fff23..fe56386d8719 100644 --- a/sal/osl/unx/file_stat.cxx +++ b/sal/osl/unx/file_stat.cxx @@ -20,6 +20,7 @@ #include <osl/file.h> #include "system.hxx" +#include <sys/stat.h> #include <sys/types.h> #include <dirent.h> #include <errno.h> diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx index a61df87c2cff..576b50486119 100644 --- a/sal/osl/unx/process_impl.cxx +++ b/sal/osl/unx/process_impl.cxx @@ -25,6 +25,7 @@ #include <pthread.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include <osl/diagnose.h> #include <osl/file.hxx> diff --git a/sal/osl/unx/secimpl.hxx b/sal/osl/unx/secimpl.hxx index 1577d6609bc7..165efafaa1bb 100644 --- a/sal/osl/unx/secimpl.hxx +++ b/sal/osl/unx/secimpl.hxx @@ -20,6 +20,8 @@ #ifndef INCLUDED_SAL_OSL_UNX_SECIMPL_HXX #define INCLUDED_SAL_OSL_UNX_SECIMPL_HXX +#include <osl/security.h> + #include <pwd.h> struct oslSecurityImpl diff --git a/sal/osl/unx/sockimpl.hxx b/sal/osl/unx/sockimpl.hxx index 4a67df4f1f72..dc354db94a42 100644 --- a/sal/osl/unx/sockimpl.hxx +++ b/sal/osl/unx/sockimpl.hxx @@ -20,12 +20,9 @@ #ifndef INCLUDED_SAL_OSL_UNX_SOCKIMPL_HXX #define INCLUDED_SAL_OSL_UNX_SOCKIMPL_HXX -#include <osl/pipe.h> -#include <osl/socket.h> #include <osl/interlck.h> -#include "system.hxx" - +#include <sys/socket.h> #include <sys/un.h> #if defined(LINUX) || defined(FREEBSD) || defined(NETBSD) diff --git a/sal/osl/unx/uunxapi.cxx b/sal/osl/unx/uunxapi.cxx index bdfed5d1ebad..fca0c179e9e7 100644 --- a/sal/osl/unx/uunxapi.cxx +++ b/sal/osl/unx/uunxapi.cxx @@ -32,6 +32,8 @@ #include <sal/log.hxx> #include <sys/file.h> +#include <sys/stat.h> +#include <unistd.h> #include <utime.h> #ifdef ANDROID diff --git a/sal/osl/unx/uunxapi.hxx b/sal/osl/unx/uunxapi.hxx index 9f792765c582..d4b73a7fbdbd 100644 --- a/sal/osl/unx/uunxapi.hxx +++ b/sal/osl/unx/uunxapi.hxx @@ -24,11 +24,7 @@ #include <string_view> -#include <unistd.h> -#include <stdlib.h> #include <sys/types.h> -#include <sys/stat.h> -#include <rtl/ustring.h> #include <rtl/ustring.hxx> diff --git a/sal/osl/w32/path_helper.hxx b/sal/osl/w32/path_helper.hxx index bcb4f83af701..beda51992058 100644 --- a/sal/osl/w32/path_helper.hxx +++ b/sal/osl/w32/path_helper.hxx @@ -23,8 +23,6 @@ #include <sal/config.h> #include <osl/diagnose.h> -#include <osl/file.h> -#include <rtl/alloc.h> #include <rtl/ustring.h> #include <rtl/ustring.hxx> #include <sal/types.h> diff --git a/sal/osl/w32/thread.hxx b/sal/osl/w32/thread.hxx index 8002d8b7f855..e82ccbcf6135 100644 --- a/sal/osl/w32/thread.hxx +++ b/sal/osl/w32/thread.hxx @@ -11,8 +11,6 @@ #include <sal/config.h> -#include <sal/types.h> - void osl_callThreadKeyCallbackOnThreadDetach(void); /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |