diff options
author | Andreas Schwab <schwab@redhat.com> | 2011-09-13 14:41:37 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2011-09-13 15:16:38 +0200 |
commit | e529793b508f47b5fb3a0a8bf5a1465a93a51dcd (patch) | |
tree | 3f0378716ec6f9fb1fb4242182ff51467d9bb962 /bits/select.h | |
parent | 52d4fef8be8742ce1d0b4654bd5fcd5d9143dfb6 (diff) | |
download | glibc-e529793b508f47b5fb3a0a8bf5a1465a93a51dcd.tar.gz glibc-e529793b508f47b5fb3a0a8bf5a1465a93a51dcd.tar.xz glibc-e529793b508f47b5fb3a0a8bf5a1465a93a51dcd.zip |
Avoid macro clash between <sys/select.h> and <linux/posix_types.h>
Diffstat (limited to 'bits/select.h')
-rw-r--r-- | bits/select.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bits/select.h b/bits/select.h index 8a4e537b94..2302c18dde 100644 --- a/bits/select.h +++ b/bits/select.h @@ -31,7 +31,8 @@ __FDS_BITS (__arr)[__i] = 0; \ } while (0) #define __FD_SET(d, s) \ - ((void) (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d))) + ((void) (__FDS_BITS (s)[__FD_ELT(d)] |= __FD_MASK(d))) #define __FD_CLR(d, s) \ - ((void) (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d))) -#define __FD_ISSET(d, s) ((__FDS_BITS (s)[__FDELT (d)] & __FDMASK (d)) != 0) + ((void) (__FDS_BITS (s)[__FD_ELT(d)] &= ~__FD_MASK(d))) +#define __FD_ISSET(d, s) \ + ((__FDS_BITS (s)[__FD_ELT (d)] & __FD_MASK (d)) != 0) |