Date: Mon, 23 Jul 2001 10:42:36 +0400
From: Andrey Melnikov <Andrey.Melnikov@p116.f1340.n5030.z2.fidonet.org>
Newsgroups: fido7.ru.linux
Subject: Патч для ircd для linux 2.2.x
--- common/os.old Mon Sep 4 11:31:24 2000
+++ common/os.h Mon Dec 25 12:02:15 2000
@@ -131,11 +131,15 @@
# if linux
/* Linux is just soooo broken */
# define _GNU_SOURCE 1
+/* In linux 2.2.x need define __USE_XOPEN for POLL* values */
+# define __USE_XOPEN 1
# endif
# include <sys/poll.h>
# if linux && !defined(POLLRDNORM)
-/* Linux 2.1.xx supports poll(), header files are not upto date yet */
# define POLLRDNORM 0x0040
+# endif
+# if linux && !defined(POLLWRNORM)
+# define POLLWRNORM 0x0100
# endif
#endif