]> git.puffer.fish Git - mirror/frr.git/commit
lib: Fix unknown sig_atomic_t compile error
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 29 Feb 2024 12:17:20 +0000 (14:17 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sat, 9 Mar 2024 07:33:00 +0000 (09:33 +0200)
commitf03b0bfaa4225182064d7749808b49760a618d29
tree7eb5069dbc3b7328adfc1c601242e1f8e0240b8e
parent3ca01bf1e9bd5fe2181d8ad7ceac1efa8ccec1f8
lib: Fix unknown sig_atomic_t compile error

This is happening for Alpine Linux.

```
26 64.59 ./lib/sigevent.h:23:18: error: unknown type name 'sig_atomic_t'
26 64.59    23 |         volatile sig_atomic_t caught; /* private member   */
26 64.59       |                  ^~~~~~~~~~~~
26 64.60 In file included from ./lib/libfrr.h:12,
26 64.60                  from ./lib/vty.h:28,
26 64.60                  from ./lib/command.h:11,
26 64.60                  from ./lib/debug.h:11,
26 64.60                  from ./mgmtd/mgmt.h:12,
26 64.60                  from mgmtd/mgmt_history.c:14:
26 64.60 ./lib/sigevent.h:23:18: error: unknown type name 'sig_atomic_t'
26 64.60    23 |         volatile sig_atomic_t caught; /* private member   */
26 64.60       |                  ^~~~~~~~~~~~
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
lib/frrevent.h