blob: 0302286dc0ec56d84143058de8d37c7a603a4b74 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From fe954b2fb17d813aaab3e926cee76144314a115a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 17 Jun 2017 16:22:55 -0700
4Subject: [PATCH 3/3] mpoad: Drop old hack to compile with very old glibc
5
6Use poll.h instead of sys/poll.h
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/mpoad/io.c | 9 +--------
13 1 file changed, 1 insertion(+), 8 deletions(-)
14
15diff --git a/src/mpoad/io.c b/src/mpoad/io.c
16index 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--
362.13.1
37