diff -up gphoto2-2.4.0/libgphoto2-2.4.0/libgphoto2_port/serial/unix.c.ixany gphoto2-2.4.0/libgphoto2-2.4.0/libgphoto2_port/serial/unix.c
--- libgphoto2-2.4.0/libgphoto2_port/serial/unix.c.ixany	2007-07-27 02:36:13.000000000 +0200
+++ libgphoto2-2.4.0/libgphoto2_port/serial/unix.c	2008-02-25 06:40:40.000000000 +0100
@@ -98,6 +98,10 @@
 
 #define CHECK(result) {int r=(result); if (r<0) return (r);}
 
+#ifndef IXANY
+#define IXANY	0004000
+#endif
+
 /* Linux */
 #ifdef __linux__
 /* devfs is accounted for in the implementation */
