summaryrefslogtreecommitdiff
path: root/libextra
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-03-19 22:03:55 +0100
committerSimon Josefsson <simon@josefsson.org>2008-03-19 22:03:55 +0100
commit45af721c79dad46ba60e1fc75911ebe7fc1ce25f (patch)
tree36ab60e20873fc8acec4653a347bc37f0c214448 /libextra
parent0617580c7ee165ec3a5dbe8fb00df316efc3cee9 (diff)
downloadgnutls-45af721c79dad46ba60e1fc75911ebe7fc1ce25f.tar.gz
Fix LZO build failure.
Diffstat (limited to 'libextra')
-rw-r--r--libextra/gnutls_extra.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/libextra/gnutls_extra.c b/libextra/gnutls_extra.c
index bf81a501e6..970208e365 100644
--- a/libextra/gnutls_extra.c
+++ b/libextra/gnutls_extra.c
@@ -116,20 +116,24 @@ gnutls_global_init_extra (void)
/* Initialize the LZO library
*/
#ifdef USE_LZO
- if (lzo_init () != LZO_E_OK)
- {
- return GNUTLS_E_LZO_INIT_FAILED;
- }
-
- /* Add the LZO compression method in the list of compression
- * methods.
- */
- ret = _gnutls_add_lzo_comp ();
- if (ret < 0)
- {
- gnutls_assert ();
- return ret;
- }
+ {
+ int ret;
+
+ if (lzo_init () != LZO_E_OK)
+ {
+ return GNUTLS_E_LZO_INIT_FAILED;
+ }
+
+ /* Add the LZO compression method in the list of compression
+ * methods.
+ */
+ ret = _gnutls_add_lzo_comp ();
+ if (ret < 0)
+ {
+ gnutls_assert ();
+ return ret;
+ }
+ }
#endif
return 0;