+2018-10-01 Tom Tromey <tom@tromey.com>
+
+ * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
+ * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
+ * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
+
2018-10-01 Tom Tromey <tom@tromey.com>
* README: Minor change.
#include "common/scoped_fd.h"
#include "config.h"
-
-#ifdef HAVE_UNISTD_H
-
#include "selftest.h"
namespace selftests {
} /* 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
}
#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"
} /* 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",