diff options
author | Matthew Endsley <mendsley@gmail.com> | 2012-05-13 17:32:15 -0700 |
---|---|---|
committer | Matthew Endsley <mendsley@gmail.com> | 2012-05-14 01:04:25 -0700 |
commit | d98f7bd7b63a82f2cb25ec2b479084c63467cb37 (patch) | |
tree | 920a35624ea71a6652f32ab5883fe8162dc31d07 | |
parent | 55a54b19b289f4fdb870ea4effcee208218038df (diff) | |
download | bsdiff-d98f7bd7b63a82f2cb25ec2b479084c63467cb37.tar.gz |
adding BSPATCH_LIBRARY to exclude non essential functionality (main+friends)
-rw-r--r-- | bspatch.c | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -28,14 +28,7 @@ __FBSDID("$FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59:06 cperciva Exp $"); #endif -#include <bzlib.h> -#include <stdlib.h> #include <stdint.h> -#include <stdio.h> -#include <string.h> -#include <err.h> -#include <unistd.h> -#include <fcntl.h> struct bspatch_stream { @@ -125,6 +118,17 @@ int bspatch(const struct bspatch_request req) return 0; } +#if !defined(BSPATCH_LIBRARY) + +#include <bzlib.h> +#include <stdlib.h> +#include <stdint.h> +#include <stdio.h> +#include <string.h> +#include <err.h> +#include <unistd.h> +#include <fcntl.h> + #define BUFFER_SIZE 4096 struct bspatch_bz2_buffer { @@ -287,3 +291,5 @@ int main(int argc,char * argv[]) return 0; } + +#endif |