blob: 260e00b2d7219efd7d59c30bc359241f31491baf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-af,v 1.4 2000/09/06 12:31:50 tron Exp $
--- compface/uncmain.c.orig Thu Oct 24 03:28:07 1991
+++ compface/uncmain.c Wed Sep 6 14:28:50 2000
@@ -18,6 +18,8 @@
#include <fcntl.h>
#include "compface.h"
+extern int xbitmap;
+
/* the buffer is longer than needed to handle sparse input formats */
#define FACEBUFLEN 2048
char fbuf[FACEBUFLEN];
@@ -33,8 +35,12 @@
/* error handling definitions follow */
+#ifdef __NetBSD__
+#include <errno.h>
+#else
extern int errno, sys_nerr;
extern char *sys_errlist[];
+#endif
extern void exit P((int)) ;
@@ -59,6 +65,13 @@
while (**argv)
if (*((*argv)++) == '/')
cmdname = *argv; /* find the command's basename */
+
+ if (argc > 1 && !strcmp(argv[1], "-X"))
+ {
+ xbitmap++;
+ argc--;
+ argv++;
+ }
if (argc > 3)
{
|