Re: [dev] [edit] Introducing edit, a simple text editor

From: Arthur Jacquin <arthur_AT_jacquin.xyz>
Date: Wed, 27 Sep 2023 15:50:53 +0200

> Hi Arthur, I tried to build your project, but it failed for me:
>
> termbox2.h:2209:22: error: storage size of 'sa' isn't known
> termbox2.h:2345:46: error: 'struct sigaction' has no member named
> 'sa_handler'
> termbox2.h:2345:44: error: invalid use of undefined type 'struct
> sigaction'
>
> All the best,
> Dan

termbox2.h is not C99 compliant, yet the -std=c99 compilation flag is
set in the default configuration. On the compilers I tried, it has not
been a problem as the non-C99 parts were ignored, but I shouldn't have
assumed it would always be this way. Sorry for the annoyance.

I removed the -std=c99 flag in the upstream, until I patch termbox2.h
for full C99 compliance. You can either pull the upstream or delete
the flag manually in config.mk.

If deleting the flag is not enough, please let me know. Otherwise,
happy editing ;)

Arthur
Received on Wed Sep 27 2023 - 15:50:53 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 27 2023 - 16:00:08 CEST