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

Abel
DEVEL_2_0_BRANCH-1
Abel Deuring 2001-11-11 22:49:51 +00:00
rodzic 7e4cd23e45
commit e4867cd08d
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -248,9 +248,7 @@ int sanei_scsi_max_request_size = MAX_DATA;
to maintain run time compatibility with the old and the
new SG driver for Linux
*/
# ifdef SG_IO
# include "linux_sg3_err.h" /* contains several definitions of error codes */
# endif
#include "linux_sg3_err.h" /* contains several definitions of error codes */
#ifndef SG_SET_COMMAND_Q
#define SG_SET_COMMAND_Q 0x2271
#endif