tuse linux/version.h - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e0d1df6f7cef193774518a690ef9cbdebbdd0c4b
(DIR) parent 286f68524e2f32afdbf43a3a9ed2cb5e0b647fd0
(HTM) Author: rsc <devnull@localhost>
Date: Tue, 16 May 2006 15:47:59 +0000
use linux/version.h
Diffstat:
M src/cmd/vbackup/mount-Linux.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/vbackup/mount-Linux.c b/src/cmd/vbackup/mount-Linux.c
t@@ -1,7 +1,8 @@
#include <u.h>
#include <sys/socket.h>
#include <sys/mount.h>
-#ifdef __Linux24__
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < 0x020600
# define __KERNEL__
# include <linux/nfs.h>
# undef __KERNEL__