aboutsummaryrefslogtreecommitdiff
path: root/misc/sys/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 /misc/sys/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 'misc/sys/select.h')
-rw-r--r--misc/sys/select.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/misc/sys/select.h b/misc/sys/select.h
index 295d3bb..97f2b3d 100644
--- a/misc/sys/select.h
+++ b/misc/sys/select.h
@@ -54,14 +54,12 @@ typedef __suseconds_t suseconds_t;
/* The fd_set member is required to be an array of longs. */
typedef long int __fd_mask;
-/* Some versions of <linux/posix_types.h> define these macros. */
+/* Some versions of <linux/posix_types.h> define this macros. */
#undef __NFDBITS
-#undef __FDELT
-#undef __FDMASK
/* It's easier to assume 8-bit bytes than to get CHAR_BIT. */
#define __NFDBITS (8 * (int) sizeof (__fd_mask))
-#define __FDELT(d) ((d) / __NFDBITS)
-#define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS))
+#define __FD_ELT(d) ((d) / __NFDBITS)
+#define __FD_MASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS))
/* fd_set for select and pselect. */
typedef struct