Package: gpart
Version: 0.1h-11+b1
Severity: important
Tags: patch

Hello,
Included below is a patch to fix compilation errors when building gpart on
i386. The patch is mainly a rework of http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=393039 and also includes a small fix to include
<errno.h>.

Hope this help,
Harish Badrinath



-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gpart depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib

gpart recommends no packages.

gpart suggests no packages.
diff -Naurp gpart.orig/src/disku.c gpart/src/disku.c
--- gpart.orig/src/disku.c	2011-03-27 21:29:43.000000000 +0530
+++ gpart/src/disku.c	2011-03-27 21:30:15.000000000 +0530
@@ -22,6 +22,7 @@
 #include "gpart.h"
 
 #if defined(__linux__)
+#include <errno.h>
 #include <sys/mount.h>
 #include <linux/hdreg.h>
 #endif
diff -Naurp gpart.orig/src/l64seek.c gpart/src/l64seek.c
--- gpart.orig/src/l64seek.c	2011-03-27 21:29:43.000000000 +0530
+++ gpart/src/l64seek.c	2011-03-27 21:31:03.000000000 +0530
@@ -26,7 +26,11 @@ static struct
 static int		osptr = -1;
 
 #if defined(__linux__) && defined(__i386__)
-_syscall5(int,_llseek,uint,fd,ulong,hi,ulong,lo,loff_t *,res,uint,wh)
+#include <sys/syscall.h>
+static int _llseek(uint fd, ulong hi, ulong lo, loff_t *res, uint wh)
+{
+ return syscall(SYS__llseek, fd, hi, lo, res, wh);
+}
 #endif
 
 
_______________________________________________
forensics-devel mailing list
forensics-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/forensics-devel

Reply via email to