diff options
author | Klaus Crusius <klaus.crusius@web.de> | 2020-11-28 18:17:11 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-12-01 12:32:55 +0100 |
commit | d6bfbfadd30984737f4481087678219be88fc5f7 (patch) | |
tree | 93a4fcdffcdf72278768028274091f8d7e9f9a40 /lib/sendf.c | |
parent | 221c9da9af187a69ff5775ca95bc5ce5f10ba41d (diff) | |
download | curl-d6bfbfadd30984737f4481087678219be88fc5f7.tar.gz |
cmake: check for linux/tcp.h
The HAVE_LINUX_TCP_H define was not set by cmake.
Closes #6252
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index b6e5e7463..04cc725f5 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -28,6 +28,8 @@ #ifdef HAVE_LINUX_TCP_H #include <linux/tcp.h> +#elif defined(HAVE_NETINET_TCP_H) +#include <netinet/tcp.h> #endif #include <curl/curl.h> |