summaryrefslogtreecommitdiff
path: root/shells/ast-ksh/files/patch-src_cmd_proto_proto.c
blob: 00bcd71de762683af8db0cbe5ee0dd34e42b0e8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/cmd/proto/proto.c.orig	2017-11-30 22:35:04 UTC
+++ src/cmd/proto/proto.c
@@ -396,6 +396,15 @@ proto(char* file, char* license, char* o
 
 #if !PROTO_STANDALONE
 #undef	error
+void
+error( int xit, const char *msg, ... )
+{
+	va_list ap;
+	va_start( ap, msg );
+	vfprintf( stderr, msg, ap );
+	va_end( ap );
+	exit( xit );
+}
 #endif
 
 typedef struct Sufcom_s