about summary refs log tree commit diff
path: root/misc/sys/select.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-14 16:09:42 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-14 16:09:42 -0700
commiteb0b6cb6e1a979ca12c14b015d9acd52fc6a133f (patch)
treea39bea559b190204186949a7814d90b8f28737c3 /misc/sys/select.h
parentbfdb73e145e6ca3bedcd5ef93e0b5d0fe9498645 (diff)
downloadglibc-eb0b6cb6e1a979ca12c14b015d9acd52fc6a133f.tar.gz
glibc-eb0b6cb6e1a979ca12c14b015d9acd52fc6a133f.tar.xz
glibc-eb0b6cb6e1a979ca12c14b015d9acd52fc6a133f.zip
Fix warnings when using <sys/select.h>.
gcc 4.4 is more picky.  And the x86-64 version of <bits/select.h>
contained a now unnecessary asm optimization.  Remove it.
Diffstat (limited to 'misc/sys/select.h')
-rw-r--r--misc/sys/select.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/sys/select.h b/misc/sys/select.h
index 2a408433ec..f4a37be551 100644
--- a/misc/sys/select.h
+++ b/misc/sys/select.h
@@ -1,5 +1,5 @@
 /* `fd_set' type and related macros, and `select'/`pselect' declarations.
-   Copyright (C) 1996,97,98,99,2000,01,02,2003 Free Software Foundation, Inc.
+   Copyright (C) 1996-2003, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -59,7 +59,7 @@ typedef long int __fd_mask;
 #undef	__FDELT
 #undef	__FDMASK
 /* It's easier to assume 8-bit bytes than to get CHAR_BIT.  */
-#define __NFDBITS	(8 * sizeof (__fd_mask))
+#define __NFDBITS	(8 * (int) sizeof (__fd_mask))
 #define	__FDELT(d)	((d) / __NFDBITS)
 #define	__FDMASK(d)	((__fd_mask) 1 << ((d) % __NFDBITS))