From 55c30456b95b2dd058b13e5c6052e48379c3721b Mon Sep 17 00:00:00 2001 From: Wittawat Yamwong Date: Sun, 28 May 2006 08:40:57 +0000 Subject: [PATCH] Added #define ENODATA and EPROTO to let the backend compiles under OS/2 with gcc 3.3.5. --- ChangeLog | 6 ++++++ backend/pixma.h | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 22f18c813..8c71565d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-28 Wittawat Yamwong + + * backend/pixma.h: Added #define ENODATA and EPROTO to let the + backend compiles under OS/2 with gcc 3.3.5. + 2006-05-27 Giuseppe Sacco * Updated italian translation @@ -12,6 +17,7 @@ keys from pixma backand 2006-05-26 Wittawat Yamwong + * AUTHORS: added Wittawat Yamwong * configure configure.in doc/Makefile.in doc/sane.man doc/descriptions/pixma.desc backend/Makefile.in diff --git a/backend/pixma.h b/backend/pixma.h index 473720702..d4467a2d6 100644 --- a/backend/pixma.h +++ b/backend/pixma.h @@ -103,6 +103,8 @@ returns zero or an error (probably \c -ECANCELED). * - \c -ENOLCK scanner cover is opened */ +#include + #ifdef HAVE_STDINT_H # include /* available in ISO C99 */ #else @@ -112,6 +114,15 @@ typedef u_int16_t uint16_t; typedef u_int32_t uint32_t; #endif /* HAVE_STDINT_H */ +#ifdef HAVE_OS2_H +# ifndef EPROTO +# define EPROTO 10000 +# endif +# ifndef ENODATA +# define ENODATA 10001 +# endif +#endif + /** \addtogroup API * @{ */ /** \name Version of the driver */