summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bsdiff.c2
-rw-r--r--bspatch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsdiff.c b/bsdiff.c
index 7bfd0eb..a44f976 100644
--- a/bsdiff.c
+++ b/bsdiff.c
@@ -431,7 +431,7 @@ int bsdiff(const uint8_t* old, int64_t oldsize, const uint8_t* new, int64_t news
return result;
}
-#if !defined(BSDIFF_LIBRARY)
+#if defined(BSDIFF_EXECUTABLE)
#include <sys/types.h>
diff --git a/bspatch.c b/bspatch.c
index 869fd10..1ba087c 100644
--- a/bspatch.c
+++ b/bspatch.c
@@ -121,7 +121,7 @@ int bspatch(const struct bspatch_request req)
return 0;
}
-#if !defined(BSPATCH_LIBRARY)
+#if defined(BSPATCH_EXECUTABLE)
#include <bzlib.h>
#include <stdlib.h>