summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorGabor Kelemen <gabor.kelemen.extern@allotropia.de>2023-08-10 10:01:03 +0200
committerMiklos Vajna <vmiklos@collabora.com>2023-08-14 09:10:29 +0200
commit10a87728636492afc48bbb8eee7d49f3f653293e (patch)
treef97cb3fe15b0217d0b7e80c4a3d40f2ec58e9bc4 /sal/rtl
parent59c2e114f76247158a0da9dcf91d6449d5d61224 (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/rtl')
-rw-r--r--sal/rtl/alloc_arena.cxx4
-rw-r--r--sal/rtl/alloc_impl.hxx1
-rw-r--r--sal/rtl/strimp.cxx1
-rw-r--r--sal/rtl/strimp.hxx4
4 files changed, 7 insertions, 3 deletions
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx
index f126efdabd27..47cb3eeab6cb 100644
--- a/sal/rtl/alloc_arena.cxx
+++ b/sal/rtl/alloc_arena.cxx
@@ -29,6 +29,10 @@
#include <string.h>
#include <stdio.h>
+#if defined(SAL_UNX)
+#include <unistd.h>
+#endif /* SAL_UNX */
+
namespace {
/**
diff --git a/sal/rtl/alloc_impl.hxx b/sal/rtl/alloc_impl.hxx
index 29c24cc998d7..398597c483d7 100644
--- a/sal/rtl/alloc_impl.hxx
+++ b/sal/rtl/alloc_impl.hxx
@@ -181,7 +181,6 @@ static inline unsigned int lowbit(sal_Size n)
#if defined(SAL_UNX)
-#include <unistd.h>
#include <pthread.h>
typedef pthread_mutex_t rtl_memory_lock_type;
diff --git a/sal/rtl/strimp.cxx b/sal/rtl/strimp.cxx
index 44b56023d0d4..6e3d6f3d54b5 100644
--- a/sal/rtl/strimp.cxx
+++ b/sal/rtl/strimp.cxx
@@ -19,6 +19,7 @@
#include <sal/config.h>
#include <assert.h>
+#include <stdlib.h>
#include <rtl/alloc.h>
#include <rtl/ustring.h>
#include <rtllifecycle.h>
diff --git a/sal/rtl/strimp.hxx b/sal/rtl/strimp.hxx
index 69404e0aa390..5fd759313ed3 100644
--- a/sal/rtl/strimp.hxx
+++ b/sal/rtl/strimp.hxx
@@ -26,8 +26,8 @@
#endif
#include <sal/types.h>
-#include <rtl/string.hxx>
-#include <rtl/ustring.hxx>
+#include <rtl/string.h>
+#include <rtl/ustring.h>
/* ======================================================================= */
/* Help functions for String and UString */