X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=errlog.c;h=ae98ed3c42fbe149a62eafaf92033752868d692c;hp=59ea1d8741e5566aea34738875853e122587074e;hb=7367a58d13c72ef9978b46f416f9b4735981bdfb;hpb=683fe3fb293c8836f4887905b38098cba7ba932c diff --git a/errlog.c b/errlog.c index 59ea1d87..ae98ed3c 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.9 2001/05/28 16:15:17 jongfoster Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.10 2001/05/29 11:52:21 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -33,6 +33,9 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.9 2001/05/28 16:15:17 jongfoster Ex * * Revisions : * $Log: errlog.c,v $ + * Revision 1.10 2001/05/29 11:52:21 oes + * Conditional compilation of w32_socket_error + * * Revision 1.9 2001/05/28 16:15:17 jongfoster * Improved reporting of errors under Win32. * @@ -474,11 +477,11 @@ void log_error(int loglevel, char *fmt, ...) sval = w32_socket_strerr(ival, tempbuf); #else /* ifndef _WIN32 */ ival = errno; -#ifndef NOSTRERROR +#ifdef HAVE_STRERROR sval = strerror(ival); -#else /* def NOSTRERROR */ +#else /* ifndef HAVE_STRERROR */ sval = NULL; -#endif /* def NOSTRERROR */ +#endif /* ndef HAVE_STRERROR */ if (sval == NULL) { sprintf(tempbuf, "(errno = %d)", ival);