curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Crosscompile with Dockcross

From: Cristian Rodríguez via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 25 Mar 2022 09:34:31 -0300

On Thu, Mar 24, 2022 at 1:51 PM Robb Schiefer via curl-library
<curl-library_at_lists.haxx.se> wrote:
>
> Added the following to my CMakeLists file and the error is gone:
>
>
>
> set(HAVE_STRUCT_TIMEVAL 1)
>
>
>
> Is this correct? Obviously I would add this conditionally based on the target architecture.

struct timeval must be defined on sys/time.h on any modern system
supporting XSI extensions that matters so yes.
Also cmake itself uses struct timeval.
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-03-25