From af09fe12ddf356d93855cfe7b84d607e3103103a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 24 Jun 2010 17:51:31 +0000 Subject: Fix build of bsdiff-4.3 on machines that don't have , such as Solaris. --- src/bsdiff-4.3/compat-include/err.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/bsdiff-4.3/compat-include/err.h (limited to 'src/bsdiff-4.3/compat-include/err.h') diff --git a/src/bsdiff-4.3/compat-include/err.h b/src/bsdiff-4.3/compat-include/err.h new file mode 100644 index 000000000000..a851ded6f907 --- /dev/null +++ b/src/bsdiff-4.3/compat-include/err.h @@ -0,0 +1,12 @@ +/* Simulate BSD's functionality. */ + +#ifndef COMPAT_ERR_H_INCLUDED +#define COMPAT_ERR_H_INCLUDED 1 + +#include +#include + +#define err(rc,...) do { fprintf(stderr,__VA_ARGS__); exit(rc); } while(0) +#define errx(rc,...) do { fprintf(stderr,__VA_ARGS__); exit(rc); } while(0) + +#endif -- cgit 1.4.1