summaryrefslogtreecommitdiff
path: root/usr.bin/patch/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r--usr.bin/patch/common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h
index 4101a575747..57b6614d7d0 100644
--- a/usr.bin/patch/common.h
+++ b/usr.bin/patch/common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.h,v 1.25 2003/10/31 20:20:45 millert Exp $ */
+/* $OpenBSD: common.h,v 1.26 2006/03/11 19:41:30 otto Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -26,6 +26,8 @@
* behaviour
*/
+#include <sys/types.h>
+
#include <stdbool.h>
#define DEBUGGING
@@ -61,7 +63,7 @@ typedef long LINENUM; /* must be signed */
/* globals */
-extern int filemode;
+extern mode_t filemode;
extern char buf[MAXLINELEN];/* general purpose buffer */