#include <sys/types.h>
-#include <bzlib.h>
-#include <fcntl.h>
-#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
struct bsdiff_header
{
uint8_t *db,*eb;
uint8_t buf[8 * 3];
- bz_stream bz2 = {0};
- int bz2err;
-
-
if(((I=malloc((oldsize+1)*sizeof(off_t)))==NULL) ||
((V=malloc((oldsize+1)*sizeof(off_t)))==NULL)) err(1,NULL);
return 0;
}
+#if !defined(BSDIFF_LIBRARY)
+
+#include <bzlib.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <unistd.h>
+
static int bz2_write(struct bsdiff_compressor* compressor, const void* buffer, int size)
{
bz_stream* bz2;
return 0;
}
+
+#endif