aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-12-22 13:05:21 +0000
committerJoseph Myers <joseph@codesourcery.com>2011-12-22 13:05:21 +0000
commitc2aeee16c8cf480b15f1cc4ca92e80797e940dfa (patch)
tree0d09428968033ac5ea5b8e8f2d422c76e3fe6e77
parentc1e30fd8bffd53aa9849fe410ca8a4204c91f836 (diff)
downloadglibc-c2aeee16c8cf480b15f1cc4ca92e80797e940dfa.tar.xz
glibc-c2aeee16c8cf480b15f1cc4ca92e80797e940dfa.zip
Define EPOLLONESHOT and EPOLLET using unsigned values for MIPS.
-rw-r--r--ChangeLog.mips6
-rw-r--r--sysdeps/unix/sysv/linux/mips/sys/epoll.h6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 9d79aea6db..2779bed104 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,9 @@
+2011-12-22 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #13538]
+ * sysdeps/unix/sysv/linux/mips/sys/epoll.h (EPOLLONESHOT)
+ (EPOLLET): Initialize with unsigned values.
+
2011-12-19 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h
diff --git a/sysdeps/unix/sysv/linux/mips/sys/epoll.h b/sysdeps/unix/sysv/linux/mips/sys/epoll.h
index 6d2ec8edf0..51a657a5b5 100644
--- a/sysdeps/unix/sysv/linux/mips/sys/epoll.h
+++ b/sysdeps/unix/sysv/linux/mips/sys/epoll.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002-2006, 2007, 2008 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2006, 2007, 2008, 2011 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
@@ -65,9 +65,9 @@ enum EPOLL_EVENTS
#define EPOLLHUP EPOLLHUP
EPOLLRDHUP = 0x2000,
#define EPOLLRDHUP EPOLLRDHUP
- EPOLLONESHOT = (1 << 30),
+ EPOLLONESHOT = 1u << 30,
#define EPOLLONESHOT EPOLLONESHOT
- EPOLLET = (1 << 31)
+ EPOLLET = 1u << 31
#define EPOLLET EPOLLET
};