[3~[3~[3~Linux and trap.c

Pablo Saratxaga (srtxg@linux.chanae.stben.be)
Fri, 24 Jan 1997 12:13:56 +0100 (MET)

Hello !

There is a little patch to autodetect the linux version used and
do the needed thing (define or not PRE_21_LINUX).
I don't know from what version the change has occurred, I guess it isn't
plain 2.1.0, if someone knows please correct it.

--- ifmail-2.9/iflib/trap.c Sun Nov 24 11:49:01 1996
+++ ifmail/iflib/trap.c Fri Jan 24 12:09:26 1997
@@ -11,6 +11,11 @@
#endif

#if defined(linux)
+#define ASC_LINUX_VERSION(V, P, S) (((V) * 65536) + ((P) * 256) + (S))
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < ASC_LINUX_VERSION(2,1,0)
+#define PRE_21_LINUX
+#endif
#define __KERNEL__
#include <linux/signal.h>
#undef __KERNEL__

-- 

A bientôt, Pablo Saratxaga

~ ~ :wq ;-) PGP Key available, key ID: 0x8F0E4975