You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.1 KiB

Index: bsdiff.c
--- bsdiff.c.orig 2005-08-17 00:13:52.000000000 +0200
+++ bsdiff.c 2005-08-17 09:17:36.626825000 +0200
@@ -31,12 +31,12 @@
#include <sys/types.h>
#include <bzlib.h>
-#include <err.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "err.h"
#define MIN(x,y) (((x)<(y)) ? (x) : (y))
Index: bspatch.c
--- bspatch.c.orig 2005-08-17 00:14:00.000000000 +0200
+++ bspatch.c 2005-08-17 09:17:36.627758000 +0200
@@ -32,9 +32,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <err.h>
#include <unistd.h>
#include <fcntl.h>
+#include "err.h"
static off_t offtin(u_char *buf)
{
Index: err.h
--- /dev/null 2005-08-17 09:19:51.000000000 +0200
+++ err.h 2005-08-17 09:19:51.704744000 +0200
@@ -0,0 +1,10 @@
+#ifndef __ERR_H__
+#define __ERR_H__
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#define err(bla, ...) { fprintf(stderr, __VA_ARGS__); fputs("\n", stderr); exit(EXIT_FAILURE); }
+#define errx(bla, ...) { fprintf(stderr, __VA_ARGS__); fputs("\n", stderr); exit(EXIT_FAILURE); }
+
+#endif /* __ERR_H__ */