Skip to content

Commit

Permalink
Fix compilation with --disable-lzo and --disable-lz4
Browse files Browse the repository at this point in the history
struct compress_options is defined under USE_COMP, therefore
compilation fails when it is referenced without that define.

Since function show_compression_warning, which uses aforementioned
struct, is only called under USE_COMP, it is safe to wrap its definition
under USE_COMP, which fixes compilation issue.

Trac: #1308

Signed-off-by: Lev Stipakov <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg20637.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
lstipakov authored and cron2 committed Aug 5, 2020
1 parent 992e9ce commit dab34fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/openvpn/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -5085,6 +5085,7 @@ set_user_script(struct options *options,
#endif
}

#ifdef USE_COMP
static void
show_compression_warning(struct compress_options *info)
{
Expand All @@ -5103,6 +5104,7 @@ show_compression_warning(struct compress_options *info)
}
}
}
#endif

static void
add_option(struct options *options,
Expand Down

0 comments on commit dab34fd

Please sign in to comment.