aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysselect.h
diff options
context:
space:
mode:
authorEli Zaretskii2013-09-05 11:01:04 +0300
committerEli Zaretskii2013-09-05 11:01:04 +0300
commit41306318777a942420bc4feadbfacf662ea179dc (patch)
tree669e5cca02f95d6064ce73c0d3fbbf91b8c8b563 /src/sysselect.h
parent141f1ff7a40cda10f0558e891dd196a943a5082e (diff)
parent257b3b03cb1cff917e0b3b7832ad3eab5b59f257 (diff)
downloademacs-41306318777a942420bc4feadbfacf662ea179dc.tar.gz
emacs-41306318777a942420bc4feadbfacf662ea179dc.zip
Merge from trunk after a lot of time.
Diffstat (limited to 'src/sysselect.h')
-rw-r--r--src/sysselect.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/sysselect.h b/src/sysselect.h
index f9b9fc00b35..5df0af9ed37 100644
--- a/src/sysselect.h
+++ b/src/sysselect.h
@@ -1,5 +1,5 @@
1/* sysselect.h - System-dependent definitions for the select function. 1/* sysselect.h - System-dependent definitions for the select function.
2 Copyright (C) 1995, 2001-2012 Free Software Foundation, Inc. 2 Copyright (C) 1995, 2001-2013 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -16,14 +16,8 @@ GNU General Public License for more details.
16You should have received a copy of the GNU General Public License 16You should have received a copy of the GNU General Public License
17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
18 18
19#ifdef HAVE_SYS_SELECT_H 19#ifndef DOS_NT
20#if defined (DARWIN_OS)
21#undef init_process
22#endif
23#include <sys/select.h> 20#include <sys/select.h>
24#if defined (DARWIN_OS)
25#define init_process emacs_init_process
26#endif
27#endif 21#endif
28 22
29/* The w32 build defines select stuff in w32.h, which is included 23/* The w32 build defines select stuff in w32.h, which is included
@@ -31,15 +25,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
31 definitions in w32.h are incompatible with the below. */ 25 definitions in w32.h are incompatible with the below. */
32#ifndef WINDOWSNT 26#ifndef WINDOWSNT
33#ifdef FD_SET 27#ifdef FD_SET
34#ifdef FD_SETSIZE 28#ifndef FD_SETSIZE
35#define MAXDESC FD_SETSIZE 29#define FD_SETSIZE 64
36#else
37#define MAXDESC 64
38#endif 30#endif
39#define SELECT_TYPE fd_set
40#else /* no FD_SET */ 31#else /* no FD_SET */
41#define MAXDESC 32 32#define FD_SETSIZE 32
42#define SELECT_TYPE int 33typedef int fd_set;
43 34
44/* Define the macros to access a single-int bitmap of descriptors. */ 35/* Define the macros to access a single-int bitmap of descriptors. */
45#define FD_SET(n, p) (*(p) |= (1 << (n))) 36#define FD_SET(n, p) (*(p) |= (1 << (n)))
@@ -53,3 +44,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53#define select sys_select 44#define select sys_select
54#endif 45#endif
55 46
47#ifdef MSDOS
48#define pselect sys_select
49#endif