curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: Compile errors on update to 7.57.0

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Dec 2017 15:18:29 +0100 (CET)

On Tue, 5 Dec 2017, Per Malmberg wrote:

>>> Can you try including <linux/types.h> just before that to see if it works
>>> then?
>
> It does not. However, removing the include of linux/tcp.h in both
> lib/sendf.c and lib/setopt.c allows it compile, though I doubt that is a
> viable patch. Can I somehow make tell configure that HAVE_LINUX_TCP_H is
> undefined for my old system?

Yes, well but configure already checked if it works to include linux/tcp.h and
it deemed it working and hence it defines HAVE_LINUX_TCP_H! :-/

The configure header check[*] adds the following set before each include when
testing, so maybe one of these makes it work?

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif

[*] = https://github.com/curl/curl/blob/master/configure.ac#L3392-L3409

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-12-05