aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysselect.h
diff options
context:
space:
mode:
authorBill Wohler2014-02-23 18:04:35 -0800
committerBill Wohler2014-02-23 18:04:35 -0800
commit3e93bafb95608467e438ba7f725fd1f020669f8c (patch)
treef2f90109f283e06a18caea3cb2a2623abcfb3a92 /src/sysselect.h
parent791c0d7634e44bb92ca85af605be84ff2ae08963 (diff)
parente918e27fdf331e89268fc2c9d7cf838d3ecf7aa7 (diff)
downloademacs-3e93bafb95608467e438ba7f725fd1f020669f8c.tar.gz
emacs-3e93bafb95608467e438ba7f725fd1f020669f8c.zip
Merge from trunk; up to 2014-02-23T23:41:17Z!lekktu@gmail.com.
Diffstat (limited to 'src/sysselect.h')
-rw-r--r--src/sysselect.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/sysselect.h b/src/sysselect.h
index 0a4f7e3ad96..b76e71a3a75 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-2013 Free Software Foundation, Inc. 2 Copyright (C) 1995, 2001-2014 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -25,15 +25,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25 definitions in w32.h are incompatible with the below. */ 25 definitions in w32.h are incompatible with the below. */
26#ifndef WINDOWSNT 26#ifndef WINDOWSNT
27#ifdef FD_SET 27#ifdef FD_SET
28#ifdef FD_SETSIZE 28#ifndef FD_SETSIZE
29#define MAXDESC FD_SETSIZE 29#define FD_SETSIZE 64
30#else
31#define MAXDESC 64
32#endif 30#endif
33#define SELECT_TYPE fd_set
34#else /* no FD_SET */ 31#else /* no FD_SET */
35#define MAXDESC 32 32#define FD_SETSIZE 32
36#define SELECT_TYPE int 33typedef int fd_set;
37 34
38/* Define the macros to access a single-int bitmap of descriptors. */ 35/* Define the macros to access a single-int bitmap of descriptors. */
39#define FD_SET(n, p) (*(p) |= (1 << (n))) 36#define FD_SET(n, p) (*(p) |= (1 << (n)))