| Index: gdb/common/host-defs.h
|
| diff --git a/gdb/gdb_select.h b/gdb/common/host-defs.h
|
| similarity index 60%
|
| copy from gdb/gdb_select.h
|
| copy to gdb/common/host-defs.h
|
| index e55ae2297cfa798488b9ec4189932fe9de8e77b7..ac239b05a8e97ed25397614ccb4bb6933f5e8526 100644
|
| --- a/gdb/gdb_select.h
|
| +++ b/gdb/common/host-defs.h
|
| @@ -1,6 +1,5 @@
|
| -/* Slightly more portable version of <sys/select.h>.
|
| -
|
| - Copyright (C) 2006-2012 Free Software Foundation, Inc.
|
| +/* Basic host-specific definitions for GDB.
|
| + Copyright (C) 1986-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -17,20 +16,25 @@
|
| You should have received a copy of the GNU General Public License
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| -#if !defined(GDB_SELECT_H)
|
| -#define GDB_SELECT_H
|
| +#ifndef HOST_DEFS_H
|
| +#define HOST_DEFS_H
|
| +
|
| +#ifdef __MSDOS__
|
| +# define CANT_FORK
|
| +# define GLOBAL_CURDIR
|
| +# define DIRNAME_SEPARATOR ';'
|
| +#endif
|
|
|
| -#ifdef HAVE_SYS_SELECT_H
|
| -#include <sys/select.h>
|
| -#else
|
| -#include <sys/time.h>
|
| +#if !defined (__CYGWIN__) && defined (_WIN32)
|
| +# define DIRNAME_SEPARATOR ';'
|
| #endif
|
|
|
| -#ifdef USE_WIN32API
|
| -#include <winsock2.h>
|
| +#ifndef DIRNAME_SEPARATOR
|
| +#define DIRNAME_SEPARATOR ':'
|
| #endif
|
|
|
| -extern int gdb_select (int n, fd_set *readfds, fd_set *writefds,
|
| - fd_set *exceptfds, struct timeval *timeout);
|
| +#ifndef SLASH_STRING
|
| +#define SLASH_STRING "/"
|
| +#endif
|
|
|
| -#endif /* !defined(GDB_SELECT_H) */
|
| +#endif /* HOST_DEFS_H */
|
|
|