Index: backend/backend-private.h =================================================================== --- backend/backend-private.h (revision 8900) +++ backend/backend-private.h (working copy) @@ -34,7 +34,27 @@ # include # include +# ifdef __linux +# include +# include +# define IOCNR_GET_DEVICE_ID 1 +# define LPIOC_GET_DEVICE_ID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len) +# include +# include +# include +# include +# endif /* __linux */ +# ifdef __sun +# ifdef __sparc +# include +# else +# include +# include +# endif /* __sparc */ +# endif /* __sun */ + + /* * C++ magic... */ Index: backend/usb-unix.c =================================================================== --- backend/usb-unix.c (revision 8900) +++ backend/usb-unix.c (working copy) @@ -5,7 +5,7 @@ * * This file is included from "usb.c" when compiled on UNIX/Linux. * - * Copyright 2007-2008 by Apple Inc. + * Copyright 2007-2009 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * These coded instructions, statements, and computer programs are the Index: backend/ieee1284.c =================================================================== --- backend/ieee1284.c (revision 8900) +++ backend/ieee1284.c (working copy) @@ -3,7 +3,7 @@ * * IEEE-1284 support functions for the Common UNIX Printing System (CUPS). * - * Copyright 2007-2008 by Apple Inc. + * Copyright 2007-2009 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * These coded instructions, statements, and computer programs are the @@ -27,27 +27,7 @@ #include "backend-private.h" -#ifdef __linux -# include -# include -# define IOCNR_GET_DEVICE_ID 1 -# define LPIOC_GET_DEVICE_ID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len) -# include -# include -# include -# include -#endif /* __linux */ -#ifdef __sun -# ifdef __sparc -# include -# else -# include -# include -# endif /* __sparc */ -#endif /* __sun */ - - /* * 'backendGetDeviceID()' - Get the IEEE-1284 device ID string and * corresponding URI.