Unverified Commit 8bf37e96 by Fabrice Fontaine Committed by Christian Brauner
parent 46e2e322
...@@ -228,9 +228,6 @@ ...@@ -228,9 +228,6 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_signalfd 5276 #define __NR_signalfd 5276
#endif #endif
#else
#define -1
#warning "__NR_signalfd not defined for your architecture"
#endif #endif
#endif #endif
......
...@@ -112,8 +112,10 @@ static inline int signalfd(int fd, const sigset_t *mask, int flags) ...@@ -112,8 +112,10 @@ static inline int signalfd(int fd, const sigset_t *mask, int flags)
int retval; int retval;
retval = syscall(__NR_signalfd4, fd, mask, _NSIG / 8, flags); retval = syscall(__NR_signalfd4, fd, mask, _NSIG / 8, flags);
#ifdef __NR_signalfd
if (errno == ENOSYS && flags == 0) if (errno == ENOSYS && flags == 0)
retval = syscall(__NR_signalfd, fd, mask, _NSIG / 8); retval = syscall(__NR_signalfd, fd, mask, _NSIG / 8);
#endif
return retval; return retval;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment