vppinfra: Place SIGPWR behind a linux define 67/40267/2
authorTom Jones <thj@freebsd.org>
Fri, 26 Jan 2024 15:00:31 +0000 (15:00 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 13 Feb 2024 16:13:19 +0000 (16:13 +0000)
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>
src/vppinfra/unix-formats.c

index 2abc752..d46b00a 100644 (file)
@@ -409,7 +409,9 @@ u8 * format_signal (u8 * s, va_list * args)
       _ (SIGPROF);
       _ (SIGWINCH);
       _ (SIGIO);
+#ifdef __linux__
       _ (SIGPWR);
+#endif /* __linux */
 #ifdef SIGSYS
       _ (SIGSYS);
 #endif