Skip to content
Snippets Groups Projects
Commit 6e5f3c75 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard
Browse files

We always have strerror, so no need to ifdef HAVE_STRERROR.

parent a14ca868
No related branches found
No related tags found
No related merge requests found
......@@ -72,11 +72,7 @@ ASPI_OpenDevice16(SRB_ExecSCSICmd16 *prb)
fd = open(device_str, O_RDWR);
if (fd == -1) {
int save_error = errno;
#ifdef HAVE_STRERROR
ERR("Error opening device %s, error '%s'\n", device_str, strerror(save_error));
#else
ERR("Error opening device %s, error %d\n", device_str, save_error);
#endif
return -1;
}
......@@ -308,11 +304,7 @@ ASPI_ExecScsiCmd(DWORD ptrPRB, UINT16 mode)
if (save_error == ENOMEM) {
MESSAGE("ASPI: Linux generic scsi driver\n You probably need to re-compile your kernel with a larger SG_BIG_BUFF value (sg.h)\n Suggest 130560\n");
}
#ifdef HAVE_STRERROR
WARN("error:= '%s'\n", strerror(save_error));
#else
WARN("error:= %d\n", save_error);
#endif
}
goto error_exit;
}
......
......@@ -3039,11 +3039,7 @@ int WS_dup_se(LPWSINFO pwsi, struct servent* p_se, int flag)
UINT16 wsaErrno(void)
{
int loc_errno = errno;
#ifdef HAVE_STRERROR
WARN("errno %d, (%s).\n", loc_errno, strerror(loc_errno));
#else
WARN("errno %d\n", loc_errno);
#endif
switch(loc_errno)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment