tags 393027 patch
stop

I have attached a patch that fixes the FTBFS. I have _not_ tested
anything beyond that the package builds, but it should be safe.

-Ted
diff -ru fdclone-2.06c/Configur fdclone-2.06c-new/Configur
--- fdclone-2.06c/Configur	2006-10-17 20:02:00.000000000 +1000
+++ fdclone-2.06c-new/Configur	2006-10-19 20:54:53.000000000 +1000
@@ -538,12 +538,8 @@
 if isexist "sysconf(0)"; then
 	echo "#define	USESYSCONF"
 fi
-if isexist "_llseek(0,0,0,0,0)" "linux/unistd" "static _syscall5(int, _llseek,
-	unsigned int, fd,
-	unsigned long, ofs_h,
-	unsigned long, ofs_l,
-	long long *, result,
-	unsigned int, whence);
+if isexist "_llseek(0,0,0,0,0)" "sys/syscall" "#define _llseek(fd, ofs_h, ofs_l, result, whence) \
+	syscall(SYS__llseek, fd, ofs_h, ofs_l, result, whence)
 "; then
 	echo "#define	USELLSEEK"
 fi
diff -ru fdclone-2.06c/dosdisk.c fdclone-2.06c-new/dosdisk.c
--- fdclone-2.06c/dosdisk.c	2006-10-17 20:02:01.000000000 +1000
+++ fdclone-2.06c-new/dosdisk.c	2006-10-17 20:02:09.000000000 +1000
@@ -84,7 +84,7 @@
 #ifdef	LINUX
 #include <mntent.h>
 #include <sys/mount.h>
-#include <linux/unistd.h>
+#include <sys/syscall.h>
 # ifndef	BLKFLSBUF
 # include <linux/fs.h>
 # endif
@@ -1028,12 +1028,13 @@
 #endif	/* !FD */
 
 #ifdef	USELLSEEK
-static _syscall5(int, _llseek,
-	unsigned int, fd,
-	unsigned long, ofs_h,
-	unsigned long, ofs_l,
-	l_off_t *, result,
-	unsigned int, whence);
+#define _llseek( \
+		/* unsigned int */ fd, \
+		/* unsigned long */ ofs_h, \
+		/* unsigned long */ ofs_l, \
+		/* l_off_t* */ result, \
+		/* unsigned int */ whence) \
+	syscall(SYS__llseek, fd, ofs_h, ofs_l, result, whence)
 
 static l_off_t NEAR Xllseek(fd, offset, whence)
 int fd;
diff -ru fdclone-2.06c/debian/rules fdclone-2.06c-new/debian/rules
--- fdclone-2.06c/debian/rules	2006-10-17 20:02:05.000000000 +1000
+++ fdclone-2.06c-new/debian/rules	2006-10-19 20:56:31.000000000 +1000
@@ -23,7 +23,7 @@
 configure-stamp:
 	dh_testdir
 	# Add here commands to configure the package.
-
+	$(MAKE) config
 	touch configure-stamp
 
 build: build-stamp

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to