aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/nc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/nc.c b/networking/nc.c
index de02ccc9d..3e122b787 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -110,10 +110,12 @@
110 * when compared to "standard" nc 110 * when compared to "standard" nc
111 */ 111 */
112 112
113#if ENABLE_NC_EXTRA
113static void timeout(int signum UNUSED_PARAM) 114static void timeout(int signum UNUSED_PARAM)
114{ 115{
115 bb_error_msg_and_die("timed out"); 116 bb_error_msg_and_die("timed out");
116} 117}
118#endif
117 119
118int nc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 120int nc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
119int nc_main(int argc, char **argv) 121int nc_main(int argc, char **argv)
@@ -187,10 +189,12 @@ int nc_main(int argc, char **argv)
187 argv++; 189 argv++;
188 } 190 }
189 191
192#if ENABLE_NC_EXTRA
190 if (wsecs) { 193 if (wsecs) {
191 signal(SIGALRM, timeout); 194 signal(SIGALRM, timeout);
192 alarm(wsecs); 195 alarm(wsecs);
193 } 196 }
197#endif
194 198
195 if (!cfd) { 199 if (!cfd) {
196 if (do_listen) { 200 if (do_listen) {