aboutsummaryrefslogtreecommitdiff
path: root/bits/select.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-09-13 14:41:37 +0200
committerAndreas Schwab <schwab@redhat.com>2011-09-13 15:16:38 +0200
commite529793b508f47b5fb3a0a8bf5a1465a93a51dcd (patch)
tree3f0378716ec6f9fb1fb4242182ff51467d9bb962 /bits/select.h
parent52d4fef8be8742ce1d0b4654bd5fcd5d9143dfb6 (diff)
downloadglibc-e529793b508f47b5fb3a0a8bf5a1465a93a51dcd.zip
glibc-e529793b508f47b5fb3a0a8bf5a1465a93a51dcd.tar.gz
glibc-e529793b508f47b5fb3a0a8bf5a1465a93a51dcd.tar.bz2
Avoid macro clash between <sys/select.h> and <linux/posix_types.h>
Diffstat (limited to 'bits/select.h')
-rw-r--r--bits/select.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/bits/select.h b/bits/select.h
index 8a4e537..2302c18 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)