mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 13:58:05 +00:00
added FD_SET and FD_ZERO for 4.2BSD
This commit is contained in:
parent
032a129cf4
commit
0d11b8fd1c
8
compat.h
8
compat.h
@ -48,6 +48,14 @@
|
||||
# define MAXHOSTNAMELEN 64
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 4.2BSD lacks FD_* macros (we only use FD_SET and FD_ZERO)
|
||||
*/
|
||||
#ifndef FD_SETSIZE
|
||||
#define FD_SET(fd, fds) ((fds) -> fds_bits[0] |= (1 << (fd)))
|
||||
#define FD_ZERO(fds) ((fds) -> fds_bits[0] = 0)
|
||||
#endif /* !FD_SETSIZE */
|
||||
|
||||
/*
|
||||
* Posix versions for those without...
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user