Commit 67b361a
authored
Fix TCP_NODELAY not defined for static builds on Unix (#381)
* Fix TCP_NODELAY not defined for static builds on Unix
The `TCP_NODELAY` macro/constant was not being defined during compilation for the bundled libcurl build on Unix systems because `netinet/tcp.h` was not being included. It is difficult to verify that this is working properly without a debugger or strace. I've confirmed this fix on Linux and macOS.
Also rearrange some of the defines to help keep the build script somewhat organized.
Fixes #379.
* Linux-specific headers are unnecessary1 parent 205117b commit 67b361a
1 file changed
+13
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | 241 | | |
247 | 242 | | |
248 | 243 | | |
| |||
288 | 283 | | |
289 | 284 | | |
290 | 285 | | |
| 286 | + | |
291 | 287 | | |
292 | 288 | | |
293 | 289 | | |
| |||
301 | 297 | | |
302 | 298 | | |
303 | 299 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | 300 | | |
314 | 301 | | |
315 | 302 | | |
316 | 303 | | |
317 | 304 | | |
318 | 305 | | |
319 | 306 | | |
| 307 | + | |
320 | 308 | | |
321 | 309 | | |
322 | 310 | | |
| |||
330 | 318 | | |
331 | 319 | | |
332 | 320 | | |
| 321 | + | |
333 | 322 | | |
| 323 | + | |
334 | 324 | | |
335 | 325 | | |
336 | 326 | | |
| |||
345 | 335 | | |
346 | 336 | | |
347 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
348 | 347 | | |
349 | 348 | | |
350 | 349 | | |
| |||
0 commit comments