summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--built_in.h12
-rw-r--r--ring.h10
2 files changed, 12 insertions, 10 deletions
diff --git a/built_in.h b/built_in.h
index 94a39dc..fa2f0c8 100644
--- a/built_in.h
+++ b/built_in.h
@@ -353,4 +353,16 @@ static inline u64 cpu_to_le64(u64 val)
# define TP_STATUS_TS_RAW_HARDWARE (1 << 31)
#endif
+#ifndef POLLRDNORM
+# define POLLRDNORM 0x0040
+#endif
+
+#ifndef POLLWRNORM
+# define POLLWRNORM 0x0100
+#endif
+
+#ifndef POLLRDHUP
+# define POLLRDHUP 0x2000
+#endif
+
#endif /* BUILT_IN_H */
diff --git a/ring.h b/ring.h
index 9737862..facda23 100644
--- a/ring.h
+++ b/ring.h
@@ -82,16 +82,6 @@ static inline void tpacket_hdr_clone(struct tpacket2_hdr *thdrd,
thdrd->tp_len = thdrs->tp_len;
}
-#ifndef POLLRDNORM
-# define POLLRDNORM 0x0040
-#endif
-#ifndef POLLWRNORM
-# define POLLWRNORM 0x0100
-#endif
-#ifndef POLLRDHUP
-# define POLLRDHUP 0x2000
-#endif
-
static inline void prepare_polling(int sock, struct pollfd *pfd)
{
memset(pfd, 0, sizeof(*pfd));