diff -Naur avrdude-5.11/linux_ppdev.h avrdude-5.11_parport/linux_ppdev.h
--- avrdude-5.11/linux_ppdev.h	2009-03-06 21:09:11.000000000 +0100
+++ avrdude-5.11_parport/linux_ppdev.h	2012-03-12 12:35:45.511534501 +0100
@@ -25,8 +25,10 @@
 #define OBSOLETE__IOW _IOW
 
 #include <sys/ioctl.h>
+#ifdef HAVE_PARPORT
 #include <linux/parport.h>
 #include <linux/ppdev.h>
+#endif
 
 #include <stdlib.h>
 
