]> sjero.net Git - wget/blobdiff - src/wget.h
[svn] New option --retry-connrefused from Ahmod Dancy.
[wget] / src / wget.h
index ccc73b6146c2f1bf6511938259f9e719705dcc2f..21b758bd62f31231e181b6c30c534aed24c7fc28 100644 (file)
@@ -326,4 +326,7 @@ typedef unsigned char  boolean;
    retrieve the requisites of a single document. */
 #define INFINITE_RECURSION -1
 
+#define CONNECT_ERROR(x) ((x) == ECONNREFUSED && !opt.retry_connrefused        \
+                         ? CONREFUSED : CONERROR)
+
 #endif /* WGET_H */