Package: avrdude
Severity: important
Tags: patch

Hi,

The current version of avrdude fails to build on GNU/kFreeBSD. Please
find attached a patch to fix that.

It would be nice if you could inclue it in the next upload.

Thanks in advance,
Aurelien


-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- avrdude-4.4.0.orig/par.c
+++ avrdude-4.4.0/par.c
@@ -28,7 +28,7 @@
 #include <unistd.h>
 #include <errno.h>
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <dev/ppbus/ppi.h>
 #elif defined(__linux__)
 #include "linux_ppdev.h"
--- avrdude-4.4.0.orig/ppi.c
+++ avrdude-4.4.0/ppi.c
@@ -19,7 +19,7 @@
 
 /* $Id: ppi.c,v 1.22 2004/05/19 21:02:25 bdean Exp $ */
 
-#if defined(__FreeBSD__) || defined(__linux__)
+#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__linux__)
 
 #include "ac_cfg.h"
 
@@ -30,7 +30,7 @@
 #include <unistd.h>
 #include <errno.h>
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__)
 #include <dev/ppbus/ppi.h>
 #elif defined(__linux__)
 #include "linux_ppdev.h"

Reply via email to