... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Oct 14 15:36:06 CEST 2010 (acab) |
|
2 |
+------------------------------------ |
|
3 |
+ * freshclam: undefine qcompare if HAVE_GETADDRINFO is unset (bb#2289) |
|
4 |
+ |
|
1 | 5 |
Mon Oct 11 13:49:29 CEST 2010 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* clamdscan: fix parsing of virus names in extended mode (bb#2311) |
... | ... |
@@ -182,10 +182,12 @@ static int getclientsock(const char *localip, int prot) |
182 | 182 |
return socketfd; |
183 | 183 |
} |
184 | 184 |
|
185 |
+#ifdef HAVE_GETADDRINFO |
|
185 | 186 |
static int qcompare(const void *a, const void *b) |
186 | 187 |
{ |
187 | 188 |
return (*(const struct addrinfo **) a)->ai_flags - (*(const struct addrinfo **) b)->ai_flags; |
188 | 189 |
} |
190 |
+#endif |
|
189 | 191 |
|
190 | 192 |
static int wwwconnect(const char *server, const char *proxy, int pport, char *ip, const char *localip, int ctimeout, struct mirdat *mdat, int logerr, unsigned int can_whitelist) |
191 | 193 |
{ |