Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: gdb/common/host-defs.h

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/common/glibc_thread_db.h ('k') | gdb/common/i386-cpuid.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « gdb/common/glibc_thread_db.h ('k') | gdb/common/i386-cpuid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698