Fixed FreeBSD compilation.
This commit is contained in:
parent
e4e61708d4
commit
c302f3bd4a
|
@ -144,6 +144,7 @@ SCSI_OpenDevice( int h, int c, int t, int d )
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef linux
|
||||||
int
|
int
|
||||||
SCSI_LinuxSetTimeout( int fd, int timeout )
|
SCSI_LinuxSetTimeout( int fd, int timeout )
|
||||||
{
|
{
|
||||||
|
@ -344,4 +345,4 @@ SCSI_GetProcinfo()
|
||||||
RegCloseKey(hkeyScsi);
|
RegCloseKey(hkeyScsi);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -47,11 +47,13 @@ SCSI_OpenDevice( int h, int c, int t, int d );
|
||||||
int
|
int
|
||||||
SCSI_LinuxSetTimeout( int fd, int timeout );
|
SCSI_LinuxSetTimeout( int fd, int timeout );
|
||||||
|
|
||||||
|
#ifdef linux
|
||||||
BOOL
|
BOOL
|
||||||
SCSI_LinuxDeviceIo( int fd,
|
SCSI_LinuxDeviceIo( int fd,
|
||||||
struct sg_header * lpvInBuffer, DWORD cbInBuffer,
|
struct sg_header * lpvInBuffer, DWORD cbInBuffer,
|
||||||
struct sg_header * lpvOutBuffer, DWORD cbOutBuffer,
|
struct sg_header * lpvOutBuffer, DWORD cbOutBuffer,
|
||||||
LPDWORD lpcbBytesReturned );
|
LPDWORD lpcbBytesReturned );
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
SCSI_GetDeviceName(int h, int c, int t, int d, LPSTR devstr, LPDWORD lpcbData);
|
SCSI_GetDeviceName(int h, int c, int t, int d, LPSTR devstr, LPDWORD lpcbData);
|
||||||
|
|
Loading…
Reference in New Issue