$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)
     {
