From bc7dea8de974648cd4e38d154abcca6879e630cc Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 1 Jul 2013 11:19:27 +0000 Subject: Rely on gnulib's unistd.h replacement. With gnulib's unistd module, we can assume unistd.h is always present, and that STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO are always defined. Don't remove unistd.h from GDB's configure.ac, as later tests in the file use HAVE_UNISTD_H checks. gdb/ 2013-07-01 Pedro Alves * defs.h: Don't check HAVE_UNISTD_H before including . (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete. * tracepoint.c: Don't check HAVE_UNISTD_H before including . gdb/gdbserver/ 2013-07-01 Pedro Alves * event-loop.c: Don't check HAVE_UNISTD_H before including . * gdbreplay.c: Likewise. * remote-utils.c: Likewise. * server.c: Likewise. * configure.ac: Don't check for unistd.h. * configure: Regenerate. --- gdb/tracepoint.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/tracepoint.c') diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 954aa13..054372a 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -64,9 +64,7 @@ /* readline defines this. */ #undef savestring -#ifdef HAVE_UNISTD_H #include -#endif #ifndef O_LARGEFILE #define O_LARGEFILE 0 -- cgit v1.1