bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

htonl: Fix link errors on Windows.


From: Collin Funk
Subject: htonl: Fix link errors on Windows.
Date: Sun, 11 Aug 2024 14:02:03 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Bruno,

Bruno Haible <bruno@clisp.org> writes:

> Since it is easy to forget, let me update the doc regarding all these
> winsock functions.

Thanks.

How does the attached patch look for fixing Windows? I haven't pushed
yet.

On Windows link to -lws2_32 to fix that build error. I've tested it
using mingw and wine and it works fine.

On others trust that the functions work correctly if a declaration has
been found. I don't know how to test on Android but I think this would
fix it. And unless the test module proves otherwise we shouldn't need to
handle the macro/float stuff.

Collin

Attachment: 0001-htonl-Fix-link-errors-on-Windows.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]