tags 393040 patch stop Here's a patch to use the syscall() libc function rather than the no-longer-available syscall* macros.
-Ted
diff -ru grubconf-0.5.1/src/partitioning.c grubconf-0.5.1-new/src/partitioning.c --- grubconf-0.5.1/src/partitioning.c 2003-04-17 23:32:59.000000000 +1000 +++ grubconf-0.5.1-new/src/partitioning.c 2006-10-22 04:03:59.000000000 +1000 @@ -31,7 +31,7 @@ #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> -#include <linux/unistd.h> +#include <sys/syscall.h> #include <linux/hdreg.h> #include <errno.h> @@ -74,9 +74,8 @@ } #if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) -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) #endif static int
signature.asc
Description: OpenPGP digital signature