Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: 11.99.2 build failures
> | Adding missing #include fixes the build:
> |
> | --- lib/libterminfo/term_private.h 21 Jun 2020 15:05:23 -0000 1.19
> | +++ lib/libterminfo/term_private.h 14 Sep 2025 07:50:10 -0000
> | @@ -71,6 +71,7 @@
> | */
> | #include <sys/types.h>
> | +#include <sys/endian.h>
> | #include <assert.h>
> | #include <limits.h>
>
> | May I commit?
>
> A better fix (assuming it works) would be just <endian.h> which is
> the defined source for definitions of those functions/macros
> (there are some standardised <sys/foo.h> headers, but <sys/endian.h>
> is not one of them). Tools should not be including non-standard headers.
>
> kre
I tried endian.h, but I got
In file included from hash.c:11:
/dist/src/tools/tic/../../usr.bin/tic/../../lib/libterminfo/term_private.h:75:10: fatal error: 'endian.h' file not found
75 | #include <endian.h>
| ^~~~~~~~~~
Home |
Main Index |
Thread Index |
Old Index