tags 392554 patch
stop

This should fix the FTBFS.

-Ted
diff -ru atari-fdisk-0.7.1/disk.c atari-fdisk-0.7.1-new/disk.c
--- atari-fdisk-0.7.1/disk.c	2003-09-23 06:27:09.000000000 +1000
+++ atari-fdisk-0.7.1-new/disk.c	2006-10-14 02:09:01.000000000 +1000
@@ -65,7 +65,7 @@
 #include <string.h>
 #include <unistd.h>
 #ifdef __linux__
-#include <asm/unistd.h>
+#include <sys/syscall.h>
 #endif
 #include <fcntl.h>
 #include <errno.h>
@@ -87,10 +87,10 @@
  * know about the loff_t type.
  */
 
-#ifdef __NR__llseek
+#ifdef SYS__llseek
 
-static _syscall5( int, _llseek, uint, fd, ulong, hi, ulong, lo,
-		  loff_t *, res, uint, wh );
+#define _llseek(fd, hi, lo, res, wh) \
+    syscall(SYS__llseek, fd, hi, lo, res, wh)
 
 /* seek to a sector */
 int sseek( unsigned int fd, unsigned long s )

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to