List:Commits« Previous MessageNext Message »
From:stewart Date:October 11 2007 10:45am
Subject:[patch 2/8] WL4081: Make azio build for NDB
View as plain text  
Index: ndb-work/storage/ndb/src/common/util/Makefile.am
===================================================================
--- ndb-work.orig/storage/ndb/src/common/util/Makefile.am	2007-10-03 17:23:27.419457938
+1000
+++ ndb-work/storage/ndb/src/common/util/Makefile.am	2007-10-03 17:38:09.066699738 +1000
@@ -25,7 +25,11 @@ libgeneral_la_SOURCES = \
             strdup.c \
             ConfigValues.cpp ndb_init.c basestring_vsnprintf.c \
             Bitmask.cpp \
-	    ndb_rand.c
+	    ndb_rand.c azio.c
+
+INCLUDES_LOC = @ZLIB_INCLUDES@
+
+libgeneral_la_LIBADD = @ZLIB_LIBS@
 
 EXTRA_PROGRAMS = testBitmask
 testBitmask_SOURCES =  testBitmask.cpp
Index: ndb-work/storage/ndb/include/util/azlib.h
===================================================================
--- ndb-work.orig/storage/ndb/include/util/azlib.h	2007-10-03 17:36:20.953397148 +1000
+++ ndb-work/storage/ndb/include/util/azlib.h	2007-10-04 18:37:45.518892557 +1000
@@ -35,7 +35,7 @@
 
 #include <zlib.h>
 
-#include "../../mysys/mysys_priv.h"
+#include "../../../../mysys/mysys_priv.h"
 #include <my_dir.h>
 
 #ifdef  __cplusplus
@@ -273,7 +273,7 @@ extern unsigned int azread ( azio_stream
      gzread returns the number of uncompressed bytes actually read (0 for
    end of file, -1 for error). */
 
-extern unsigned int azwrite (azio_stream *s, voidpc buf, unsigned int len);
+extern unsigned int azwrite (azio_stream *s, const void* buf, unsigned int len);
 /*
      Writes the given number of uncompressed bytes into the compressed file.
    azwrite returns the number of uncompressed bytes actually written
Index: ndb-work/storage/ndb/src/common/util/azio.c
===================================================================
--- ndb-work.orig/storage/ndb/src/common/util/azio.c	2007-10-04 17:49:43.021515862 +1000
+++ ndb-work/storage/ndb/src/common/util/azio.c	2007-10-04 18:37:53.255272000 +1000
@@ -510,7 +510,7 @@ unsigned int ZEXPORT azread ( azio_strea
   Writes the given number of uncompressed bytes into the compressed file.
   azwrite returns the number of bytes actually written (0 in case of error).
 */
-unsigned int azwrite (azio_stream *s, voidpc buf, unsigned int len)
+unsigned int azwrite (azio_stream *s, const void*  buf, unsigned int len)
 {
   s->stream.next_in = (Bytef*)buf;
   s->stream.avail_in = len;

--
Stewart Smith
Thread
[patch 0/8] WL4081 NDB Compressed LCP and Backupstewart11 Oct
  • [patch 4/8] WL4081: read compressed backup filesstewart11 Oct
  • [patch 3/8] WL4081: Add compressed file support to AsyncFile (azio) and support compressed backups.stewart11 Oct
  • [patch 1/8] WL4081: Copy azio for NDBstewart11 Oct
  • [patch 6/8] WL4081: Add support to AsyncFile for reading zlib compressed files.stewart11 Oct
  • [patch 5/8] WL4081: add support for *storing* compressed LCPstewart11 Oct
  • [patch 8/8] WL4081 Futz with mtr ndb config to enable compressed lcp, backup and O_DIRECTstewart11 Oct
  • [patch 7/8] WL4081 Allow use of direct IO (O_DIRECT) with aziostewart11 Oct
  • [patch 2/8] WL4081: Make azio build for NDBstewart11 Oct
  • Re: [patch 0/8] WL4081 NDB Compressed LCP and BackupStewart Smith11 Oct