Browse Source

lineedit: fix "defined but not used" sigaction2 warning

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko 5 years ago
parent
commit
23427a63fc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libbb/lineedit.c

+ 2 - 0
libbb/lineedit.c

@@ -2309,6 +2309,7 @@ static int32_t reverse_i_search(int timeout)
 }
 #endif
 
+#if ENABLE_FEATURE_EDITING_WINCH
 static void sigaction2(int sig, struct sigaction *act)
 {
 	// Grr... gcc 8.1.1:
@@ -2318,6 +2319,7 @@ static void sigaction2(int sig, struct sigaction *act)
 	oact = act;
 	sigaction(sig, act, oact);
 }
+#endif
 
 /* maxsize must be >= 2.
  * Returns: