aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/unittests')
-rw-r--r--gdb/unittests/scoped_fd-selftests.c7
-rw-r--r--gdb/unittests/scoped_mmap-selftests.c6
2 files changed, 3 insertions, 10 deletions
diff --git a/gdb/unittests/scoped_fd-selftests.c b/gdb/unittests/scoped_fd-selftests.c
index 4d74541..d5c0d30 100644
--- a/gdb/unittests/scoped_fd-selftests.c
+++ b/gdb/unittests/scoped_fd-selftests.c
@@ -21,9 +21,6 @@
#include "common/scoped_fd.h"
#include "config.h"
-
-#ifdef HAVE_UNISTD_H
-
#include "selftest.h"
namespace selftests {
@@ -78,13 +75,9 @@ run_tests ()
} /* namespace scoped_fd */
} /* namespace selftests */
-#endif /* HAVE_UNISTD_H */
-
void
_initialize_scoped_fd_selftests ()
{
-#ifdef HAVE_UNISTD_H
selftests::register_test ("scoped_fd",
selftests::scoped_fd::run_tests);
-#endif
}
diff --git a/gdb/unittests/scoped_mmap-selftests.c b/gdb/unittests/scoped_mmap-selftests.c
index e9d4afd..b181e02 100644
--- a/gdb/unittests/scoped_mmap-selftests.c
+++ b/gdb/unittests/scoped_mmap-selftests.c
@@ -22,7 +22,7 @@
#include "common/scoped_mmap.h"
#include "config.h"
-#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_UNISTD_H)
+#if defined(HAVE_SYS_MMAN_H)
#include "selftest.h"
#include "common/gdb_unlinker.h"
@@ -132,12 +132,12 @@ run_tests ()
} /* namespace mmap_file */
} /* namespace selftests */
-#endif /* !defined(HAVE_SYS_MMAN_H) || !defined(HAVE_UNISTD_H) */
+#endif /* !defined(HAVE_SYS_MMAN_H) */
void
_initialize_scoped_mmap_selftests ()
{
-#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_UNISTD_H)
+#if defined(HAVE_SYS_MMAN_H)
selftests::register_test ("scoped_mmap",
selftests::scoped_mmap::run_tests);
selftests::register_test ("mmap_file",