From 9ea44fca25bb9e2e3c8478194af5b353286a90c5 Mon Sep 17 00:00:00 2001 From: Futaura Date: Wed, 19 Jul 2023 19:58:44 +0100 Subject: [PATCH] amigaos: fix sys/mbuf.h m_len macro clash The updated Curl_http_req_make and Curl_http_req_make2 functions spawned a parameter called m_len. The AmigaOS networking headers, derived from NetBSD, contain "#define m_len m_hdr.mh_len" which clashes with this. Since we do not actually use mbuf, force the include file to be ignored, removing the clash. Closes #11479 --- lib/curl_setup.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/curl_setup.h b/lib/curl_setup.h index 727d123e5a..81c4bd12b7 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -298,6 +298,7 @@ # if defined(HAVE_PROTO_BSDSOCKET_H) && \ (!defined(__amigaos4__) || defined(USE_AMISSL)) /* use bsdsocket.library directly, instead of libc networking functions */ +# define _SYS_MBUF_H /* m_len define clashes with curl */ # include # ifdef __amigaos4__ int Curl_amiga_select(int nfds, fd_set *readfds, fd_set *writefds,