summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-26 15:00:31 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-02-13 16:13:19 +0000
commitb2e0ce96ea7acc328be5f5bae5ea904a6cd61146 (patch)
treeac629ada51ce22b1800834e205c91a23d2d215bb /src/vppinfra
parent58f37b21eace1c93ed5b20047cae4d0056cba376 (diff)
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 <thj@freebsd.org>
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/unix-formats.c2
1 files changed, 2 insertions, 0 deletions
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