From a775bb1e09ebc0d5058a765cca978b61b7653370 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 26 Feb 2009 00:00:51 +0000 Subject: [PATCH] b=17896 move SEEK_CUR defs to where they are needed --- lustre/mdd/mdd_lproc.c | 5 ----- lustre/obdclass/lprocfs_status.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lustre/mdd/mdd_lproc.c b/lustre/mdd/mdd_lproc.c index 1e5d86b..6e043bf 100644 --- a/lustre/mdd/mdd_lproc.c +++ b/lustre/mdd/mdd_lproc.c @@ -59,11 +59,6 @@ #include "mdd_internal.h" -#ifndef SEEK_CUR /* SLES10 needs this */ -#define SEEK_CUR 1 -#define SEEK_END 2 -#endif - static const char *mdd_counter_names[LPROC_MDD_NR] = { }; diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index a8caa47..5c71a1f 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -2342,6 +2342,11 @@ int changelog_seq_release(struct inode *inode, struct file *file) } EXPORT_SYMBOL(changelog_seq_release); +#ifndef SEEK_CUR /* SLES10 needs this */ +#define SEEK_CUR 1 +#define SEEK_END 2 +#endif + loff_t changelog_seq_lseek(struct file *file, loff_t offset, int origin) { struct seq_file *seq = (struct seq_file *)file->private_data; -- 1.8.3.1