kopia lustrzana https://gitlab.com/sane-project/backends
Removed the #ifdef SG_IO/#endif around #include linux_sg3_err.h in
sanei_scsi.c. Now causes a compiler error, because some macros defined there are used for the old SG interace too. Thanks to Henning for discovering the bug AbelDEVEL_2_0_BRANCH-1
rodzic
7e4cd23e45
commit
e4867cd08d
|
@ -248,9 +248,7 @@ int sanei_scsi_max_request_size = MAX_DATA;
|
||||||
to maintain run time compatibility with the old and the
|
to maintain run time compatibility with the old and the
|
||||||
new SG driver for Linux
|
new SG driver for Linux
|
||||||
*/
|
*/
|
||||||
# ifdef SG_IO
|
#include "linux_sg3_err.h" /* contains several definitions of error codes */
|
||||||
# include "linux_sg3_err.h" /* contains several definitions of error codes */
|
|
||||||
# endif
|
|
||||||
#ifndef SG_SET_COMMAND_Q
|
#ifndef SG_SET_COMMAND_Q
|
||||||
#define SG_SET_COMMAND_Q 0x2271
|
#define SG_SET_COMMAND_Q 0x2271
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue