[stgt] 0.9.8 released

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Mon Sep 14 14:01:57 CEST 2009


On Mon, 14 Sep 2009 12:49:25 +0200
Tomasz Chmielewski <mangoo at wpkg.org> wrote:

> Sorry for the late reply - but 0.9.8 with this patch doesn't build on Debian Etch:

Are you sure that you use your environment is "clean" (not including
packages such as linux-kernel-headers from backport, your own kernel
header files, etc).

I can build the latest git on Debian Etch (POWER).

It's better if the code can be compiled on any environments. Try the
following patch with the latest git?

diff --git a/usr/util.h b/usr/util.h
index ae22ec0..acec418 100644
--- a/usr/util.h
+++ b/usr/util.h
@@ -96,7 +96,8 @@ do {									\
 
 extern unsigned long pagesize, pageshift;
 
-#if defined(__NR_sync_file_range) || defined(__NR_sync_file_range2)
+#if defined (SYNC_FILE_RANGE_WAIT_BEFORE) && \
+	(defined(__NR_sync_file_range) || defined(__NR_sync_file_range2))
 static inline int __sync_file_range(int fd, __off64_t offset, __off64_t bytes)
 {
 	int ret;
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list