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 8b877c2..ffda5a1 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 c82872b..7619af5 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"