$NetBSD$

--- ./snappy_unittest.cc.orig	2011-03-24 23:20:16.000000000 +0000
+++ ./snappy_unittest.cc
@@ -154,10 +154,17 @@ static bool Compress(const char* input, 
 #ifdef LZF_VERSION
     case LIBLZF: {
       compressed->resize(input_size - 1);
+#ifdef __NetBSD__
+      int destlen = lzf_compress(input,
+                                 input_size,
+                                 string_as_array(compressed),
+                                 input_size - 1, NULL);
+#else
       int destlen = lzf_compress(input,
                                  input_size,
                                  string_as_array(compressed),
                                  input_size - 1);
+#endif
       if (destlen == 0) {
         // lzf *can* cause lots of blowup when compressing, so they
         // recommend to limit outsize to insize, and just not compress
