Hello,

I also did some testing, and I found that the "sys/stat.h" include in
"buffer.c" also appears to be unnecessary. "sys/file.h" is not part of
POSIX, which likely explains its absence on Sortix. (It appears to be
a BSD holdover, based on searches.)

Cheers,
Alexander


On Mon, Mar 17, 2025 at 10:19 PM Michael Mikonos <mmik...@mail2agent.com> wrote:
>
> Good morning,
>
>
> Some work is happening towards the 1.1 release of the Sortix OS.
> When I build GNU ed 1.21 with GCC 14 on Sortix I get a failure because the 
> header file sys/file.h is missing.
> The only file referencing  sys/file.h is buffer.c.
> It appears that buffer.c doesn't need this header.
> When I remove the #include the build completes successfully with no warnings.
> Also, there were no warnings when applying this change on Linux and building 
> with GCC 12.
>
>
> Regards,
> Michael
>
>
>
>
> % cd ed-1.12
> % printf "/file\.h/d\nwq\n" | ed buffer.c
> % ./configure && make

Reply via email to