lrzsz icon indicating copy to clipboard operation
lrzsz copied to clipboard

lib/long-options.c: include stdlib.h

Open yegorich opened this issue 1 year ago • 1 comments

Fixes the following error (compiled with GCC 14.x):

long-options.c:70:11: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
   70 |           exit (0);
      |           ^~~~

yegorich avatar May 21 '24 09:05 yegorich

The issue is not limited to glibc, musl needs the include, too. And uClibc at least builds with the #ifdef removed (making the #include unconditional), I haven't done a runtime test with that yet.

airtower-luna avatar Jul 21 '25 08:07 airtower-luna