Skip to contentSkip to conversation

Fix compilation without compression

PATCH In review Gert Doering 1 participant 2 messages Mar 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation without compression

The previous commit (e86bc8b2967) breaks compilation if all compression algorithms are disabled (--disable-lz4 --disable-lzo). A later patch in the series would fix this but can not be merged yet.

---
 src/openvpn/options.c | 2 ++
 1 file changed, 2 insertions(+)
src/openvpn/options.c +2 -0
index 435e1ca9..e3d14e94 100644
@@ -3779,8 +3779,10 @@ options_postprocess_mutate(struct options *o, struct env_set *es)
     /* this depends on o->windows_driver, which is set above */
     options_postprocess_mutate_invariant(o);
 
+#ifdef USE_COMP
     /* check that compression settings in the options are okay */
     check_compression_settings_valid(&o->comp, M_USAGE);
+#endif
 
     /*
      * Save certain parms before modifying options during connect, especially
Signature · 1 line
2.39.2
#1 lore raw

Hi,

Quoted 3 lines · Gert Doering

The previous commit (e86bc8b2967) breaks compilation if all compression algorithms are disabled (--disable-lz4 --disable-lzo). A later patch in the series would fix this but can not be merged yet.

Just for reference, this got fixed with Arne's commit a8170dd0e76 now, so this patch is no longer needed. Marked as such in Patchwork.

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...