X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d1d6801eb4badab97416d0b6294e1920d0f90c3e..2566f386bf0ba1e652524aecb43667d9d8ebd929:/src/sysselect.h diff --git a/src/sysselect.h b/src/sysselect.h index 0c90814390..b76e71a3a7 100644 --- a/src/sysselect.h +++ b/src/sysselect.h @@ -1,6 +1,5 @@ /* sysselect.h - System-dependent definitions for the select function. - Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2014 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -17,14 +16,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ -#ifdef HAVE_SYS_SELECT_H -#if defined (DARWIN_OS) -#undef init_process -#endif +#ifndef DOS_NT #include -#if defined (DARWIN_OS) -#define init_process emacs_init_process -#endif #endif /* The w32 build defines select stuff in w32.h, which is included @@ -32,15 +25,12 @@ along with GNU Emacs. If not, see . */ definitions in w32.h are incompatible with the below. */ #ifndef WINDOWSNT #ifdef FD_SET -#ifdef FD_SETSIZE -#define MAXDESC FD_SETSIZE -#else -#define MAXDESC 64 +#ifndef FD_SETSIZE +#define FD_SETSIZE 64 #endif -#define SELECT_TYPE fd_set #else /* no FD_SET */ -#define MAXDESC 32 -#define SELECT_TYPE int +#define FD_SETSIZE 32 +typedef int fd_set; /* Define the macros to access a single-int bitmap of descriptors. */ #define FD_SET(n, p) (*(p) |= (1 << (n))) @@ -54,5 +44,6 @@ along with GNU Emacs. If not, see . */ #define select sys_select #endif -/* arch-tag: 36d05500-8cf6-4847-8e78-6721f18c06ef - (do not change this comment) */ +#ifdef MSDOS +#define pselect sys_select +#endif