binutils-gdb/gdb/unittests
Tom Tromey 4176f14d9c Don't check HAVE_UNISTD_H
I noticed some spots that were checking HAVE_UNISTD_H.  There is no
need to do this, as <unistd.h> is unconditionally included in many
places in gdb.  This sort of cleanup was done once before, in 2013:

    2013-07-01  Pedro Alves  <palves@redhat.com>

	    * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
	    (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
	    * tracepoint.c: Don't check HAVE_UNISTD_H before including
	    <unistd.h>.

HAVE_UNISTD_H seems to come from gnulib, so there are still mentions
of it in the source.

gdb/ChangeLog
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 02:58:23 -06:00
..
basic_string_view Simple unused variable removals 2018-07-22 13:20:01 -06:00
optional
array-view-selftests.c
cli-utils-selftests.c Add a self-test for cli-utils.c 2018-07-12 23:10:56 +02:00
common-utils-selftests.c
environ-selftests.c
format_pieces-selftests.c
function-view-selftests.c
lookup_name_info-selftests.c
memory-map-selftests.c
memrange-selftests.c
observable-selftests.c
offset-type-selftests.c
optional-selftests.c
parse-connection-spec-selftests.c Implement IPv6 support for GDB/gdbserver 2018-07-11 19:41:31 -04:00
ptid-selftests.c
rsp-low-selftests.c
scoped_fd-selftests.c Don't check HAVE_UNISTD_H 2018-10-01 02:58:23 -06:00
scoped_mmap-selftests.c Don't check HAVE_UNISTD_H 2018-10-01 02:58:23 -06:00
scoped_restore-selftests.c
string_view-selftests.c
tracepoint-selftests.c
unpack-selftests.c
utils-selftests.c
xml-utils-selftests.c