Commit 899eb0d
Use CHECK_TIMEOUT after connect and add hsocket.c+htime.c to nslookup target
- Replace inline timeout check with CHECK_TIMEOUT macro by moving
variable declarations before the connect: label to avoid crossing
initializations with goto.
- Add hsocket.c and htime.c to nslookup CMake target for Windows
link compatibility (dns.c calls WSAInit from hsocket.c).
Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com>1 parent 1ac34d6 commit 899eb0d
2 files changed
Lines changed: 10 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
333 | 339 | | |
334 | 340 | | |
335 | 341 | | |
| |||
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 347 | + | |
349 | 348 | | |
350 | 349 | | |
351 | 350 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | 351 | | |
356 | | - | |
357 | | - | |
| 352 | + | |
| 353 | + | |
358 | 354 | | |
359 | 355 | | |
360 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments