Support and autodetect LZO version 2.0 and later.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 Nov 2006 20:10:46 +0000 (20:10 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 Nov 2006 20:10:46 +0000 (20:10 +0000)
src/net_packet.c
src/tincd.c

index 8b877c21a93e59349695fac2aef00542b3db1522..ffda5a1253702c3ae2733fbc084e65239f20380d 100644 (file)
 #include <openssl/hmac.h>
 
 #include <zlib.h>
+#ifdef HAVE_LZO_LZO1X_H
+#include <lzo/lzo1x.h>
+#endif
+#ifdef HAVE_LZO1X_H
 #include <lzo1x.h>
+#endif
 
 #include "avl_tree.h"
 #include "conf.h"
index c82872b35ac87de9b8d357441554d5542b9e1aac..7619af552cbc8ef1369f5f79b2be6d004284a5a4 100644 (file)
 #include <openssl/evp.h>
 #include <openssl/engine.h>
 
+#ifdef HAVE_LZO_LZO1X_H
+#include <lzo/lzo1x.h>
+#endif
+#ifdef HAVE_LZO1X_H
 #include <lzo1x.h>
+#endif
 
 #include <getopt.h>
 #include "pidfile.h"