Skip to content

Commit

Permalink
rdisc: tell in --version output if ENABLE_RDISC_SERVER was defined
Browse files Browse the repository at this point in the history
Manual page tells some functionality is conditional to configure option, so
inform in version output what can be expected.

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Tested-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
  • Loading branch information
kerolasa committed Nov 29, 2019
1 parent 7acef2a commit a20e0e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rdisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,13 @@ int main(int argc, char **argv)
break;
case 'V':
printf(IPUTILS_VERSION("rdisc"));
printf("Compiled %s ENABLE_RDISC_SERVER.\n",
#ifdef RDISC_SERVER
"with"
#else
"without"
#endif
);
exit(0);
#ifdef RDISC_SERVER
case 'T':
Expand Down

0 comments on commit a20e0e4

Please sign in to comment.