summaryrefslogtreecommitdiff
path: root/xc/fonts/PEX
diff options
context:
space:
mode:
authorrws <empty>1993-07-29 13:40:21 +0000
committerrws <empty>1993-07-29 13:40:21 +0000
commit6b5bf3c4acdbda1dcbf6ad083d0e879a1ffc029f (patch)
tree97df3fb0533ae7dade4872a3ddac41c3d3bae8b7 /xc/fonts/PEX
parentddf2a216835eb8706a08797f694cc1be9f7869b3 (diff)
bsdi support
Diffstat (limited to 'xc/fonts/PEX')
-rw-r--r--xc/fonts/PEX/to_wfont.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/xc/fonts/PEX/to_wfont.y b/xc/fonts/PEX/to_wfont.y
index f5c4f9f1f..2bb683a9b 100644
--- a/xc/fonts/PEX/to_wfont.y
+++ b/xc/fonts/PEX/to_wfont.y
@@ -1,5 +1,5 @@
%{
-/* $XConsortium: to_wfont.y,v 5.3 91/04/04 16:00:26 gildea Exp $ */
+/* $XConsortium: to_wfont.y,v 5.4 91/10/31 08:59:03 rws Exp $ */
/*****************************************************************
Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
@@ -327,7 +327,9 @@ check_num_ch()
yyerror()
{
+#ifndef bsdi
extern int yylineno;
+#endif
# define ERR_SIZE (sizeof(err_string) / sizeof(char *))
static char *err_string[] = {
"Cannot open file",
@@ -348,7 +350,11 @@ yyerror()
str = err_string[yyerrno-1];
else
str = "Syntax error";
+#ifdef bsdi
+ fprintf(stderr, "%s.\n", str);
+#else
fprintf(stderr, "line %d: %s.\n", yylineno, str);
+#endif
freeall();
(void) unlink(fname);
exit(1);