summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/common.h
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2003-08-10 21:28:48 +0000
committerotto <otto@openbsd.org>2003-08-10 21:28:48 +0000
commit9f4ed7c2b10cc943494dbc4ec7e01cac660e9c04 (patch)
treecd8a6a649c8f188360c2da862eb1bf70714795d4 /usr.bin/patch/common.h
parentA long-needed notes update for mvme88k... (diff)
downloadwireguard-openbsd-9f4ed7c2b10cc943494dbc4ec7e01cac660e9c04.tar.xz
wireguard-openbsd-9f4ed7c2b10cc943494dbc4ec7e01cac660e9c04.zip
Do not add an extra newline at the end if the last line of the input
file contains no newline and the diff does not touch the last line. Contributions from millert@. ok millert@ tedu@
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r--usr.bin/patch/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h
index 9e49c26ad18..b76dc15d072 100644
--- a/usr.bin/patch/common.h
+++ b/usr.bin/patch/common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.h,v 1.22 2003/08/01 20:30:48 otto Exp $ */
+/* $OpenBSD: common.h,v 1.23 2003/08/10 21:28:48 otto Exp $ */
#include <stdbool.h>
@@ -71,6 +71,7 @@ extern bool canonicalize;
/* TRUE if -C was specified on command line. */
extern bool check_only;
extern bool warn_on_invalid_line;
+extern bool last_line_missing_eol;
#define CONTEXT_DIFF 1