diff options
Diffstat (limited to 'src/Sockets.c')
-rw-r--r-- | src/Sockets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Sockets.c b/src/Sockets.c index 685a57a..c319e3d 100644 --- a/src/Sockets.c +++ b/src/Sockets.c @@ -16,6 +16,7 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif /* HAVE_UNISTD_H */ @@ -612,7 +613,7 @@ int Iso_Write(isoSocket *connection, const char *buffer, size_t count) /* The socket is marked non-blocking and the requested operation would block. */ #endif default : - fprintf(stderr, "Error: this should never happen - %s %d", __FILE__, __LINE__); + fprintf(stderr, "Unhandled error '%s': this should never happen - %s %d", strerror (errno), __FILE__, __LINE__); } } else |