From b2e0ce96ea7acc328be5f5bae5ea904a6cd61146 Mon Sep 17 00:00:00 2001 From: Tom Jones Date: Fri, 26 Jan 2024 15:00:31 +0000 Subject: vppinfra: Place SIGPWR behind a linux define The SIGPWR signal is specific to Linux, place it behind a Linux flag to help the build on FreeBSD. Type: improvement Change-Id: Ie36c2ceb201afff98e92bbe64595c3953b11c457 Signed-off-by: Tom Jones --- src/vppinfra/unix-formats.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vppinfra') diff --git a/src/vppinfra/unix-formats.c b/src/vppinfra/unix-formats.c index 2abc7521bae..d46b00a450c 100644 --- a/src/vppinfra/unix-formats.c +++ b/src/vppinfra/unix-formats.c @@ -409,7 +409,9 @@ u8 * format_signal (u8 * s, va_list * args) _ (SIGPROF); _ (SIGWINCH); _ (SIGIO); +#ifdef __linux__ _ (SIGPWR); +#endif /* __linux */ #ifdef SIGSYS _ (SIGSYS); #endif -- cgit 1.2.3-korg