From: oes Date: Mon, 25 Mar 2002 22:12:45 +0000 (+0000) Subject: Added fix for undefined INADDR_NONE on Solaris by Bart Schelstraete X-Git-Tag: v_2_9_5~34 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=9ce5edae4312ab1fcf16403a9a311395affc3c99 Added fix for undefined INADDR_NONE on Solaris by Bart Schelstraete --- diff --git a/filters.h b/filters.h index 3ff19b88..66c1aae6 100644 --- a/filters.h +++ b/filters.h @@ -1,6 +1,6 @@ #ifndef FILTERS_H_INCLUDED #define FILTERS_H_INCLUDED -#define FILTERS_H_VERSION "$Id: filters.h,v 1.16 2002/01/17 21:01:02 jongfoster Exp $" +#define FILTERS_H_VERSION "$Id: filters.h,v 1.17 2002/03/24 13:25:43 swa Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.h,v $ @@ -39,6 +39,9 @@ * * Revisions : * $Log: filters.h,v $ + * Revision 1.17 2002/03/24 13:25:43 swa + * name change related issues + * * Revision 1.16 2002/01/17 21:01:02 jongfoster * Moving all our URL and URL pattern parsing code to urlmatch.c. * @@ -247,6 +250,13 @@ extern char *pcrs_filter_response(struct client_state *csp); extern char *gif_deanimate_response(struct client_state *csp); extern int remove_chunked_transfer_coding(char *buffer, const size_t size); +/* + * Solaris fix: + */ +#ifndef INADDR_NONE +#define INADDR_NONE -1 +#endif + /* * Revision control strings from this header and associated .c file */ diff --git a/gateway.h b/gateway.h index 0974003a..b36d7a42 100644 --- a/gateway.h +++ b/gateway.h @@ -1,6 +1,6 @@ #ifndef GATEWAY_H_INCLUDED #define GATEWAY_H_INCLUDED -#define GATEWAY_H_VERSION "$Id: gateway.h,v 1.4 2002/03/09 20:03:52 jongfoster Exp $" +#define GATEWAY_H_VERSION "$Id: gateway.h,v 1.5 2002/03/24 13:25:43 swa Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/gateway.h,v $ @@ -36,6 +36,9 @@ * * Revisions : * $Log: gateway.h,v $ + * Revision 1.5 2002/03/24 13:25:43 swa + * name change related issues + * * Revision 1.4 2002/03/09 20:03:52 jongfoster * - Making various functions return int rather than size_t. * (Undoing a recent change). Since size_t is unsigned on @@ -91,7 +94,16 @@ extern jb_socket forwarded_connect(const struct forward_spec * fwd, struct http_request *http, struct client_state *csp); -/* Revision control strings from this header and associated .c file */ +/* + * Solaris fix + */ +#ifndef INADDR_NONE +#define INADDR_NONE -1 +#endif + +/* + * Revision control strings from this header and associated .c file + */ extern const char gateway_rcs[]; extern const char gateway_h_rcs[];