Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From fe954b2fb17d813aaab3e926cee76144314a115a Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 17 Jun 2017 16:22:55 -0700 |
| 4 | Subject: [PATCH 3/3] mpoad: Drop old hack to compile with very old glibc |
| 5 | |
| 6 | Use poll.h instead of sys/poll.h |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | src/mpoad/io.c | 9 +-------- |
| 13 | 1 file changed, 1 insertion(+), 8 deletions(-) |
| 14 | |
| 15 | diff --git a/src/mpoad/io.c b/src/mpoad/io.c |
| 16 | index 69900c2..8d1433f 100644 |
| 17 | --- a/src/mpoad/io.c |
| 18 | +++ b/src/mpoad/io.c |
| 19 | @@ -10,14 +10,7 @@ |
| 20 | #include <errno.h> |
| 21 | #include <sys/ioctl.h> |
| 22 | #include <sys/param.h> /* for OPEN_MAX */ |
| 23 | -#if __GLIBC__ >= 2 |
| 24 | -#include <sys/poll.h> |
| 25 | -#else /* ugly hack to make it compile on RH 4.2 - WA */ |
| 26 | -#include <syscall.h> |
| 27 | -#include <linux/poll.h> |
| 28 | -#define SYS_poll 168 |
| 29 | -_syscall3(int,poll,struct pollfd *,ufds,unsigned int,nfds,int,timeout); |
| 30 | -#endif |
| 31 | +#include <poll.h> |
| 32 | #include <atm.h> |
| 33 | #include <linux/types.h> |
| 34 | #include <linux/atmioc.h> |
| 35 | -- |
| 36 | 2.13.1 |
| 37 | |