aboutsummaryrefslogtreecommitdiff
path: root/files.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-26 17:58:46 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-26 17:58:46 -0800
commit889fd70ec7537472e7d378f3e500c17ce40743ff (patch)
tree4a761afebe25d7074778d4ccaae4b47333110ac9 /files.h
parentde0fec8fcb2e09500b4665b07fdad6a2902d9c87 (diff)
Cleaned up some error code
Diffstat (limited to 'files.h')
-rw-r--r--files.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/files.h b/files.h
index 63b1c0f..b82ead4 100644
--- a/files.h
+++ b/files.h
@@ -6,6 +6,9 @@
#include <stdbool.h>
#include <stdio.h>
+#include <unistd.h>
+
+#define file_err(f, ...) do { fprint_line(stderr, f, __VA_ARGS__); exit(EXIT_FAILURE); } while(false)
struct allocated_pat_s; // declared in types.h