Skip to content

Commit

Permalink
compiles on redhat6 64 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
freakout42 committed Oct 6, 2024
1 parent 7b6191f commit 8ab131b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions runform/colquery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ colquery0.o: colquery.c colquery.h colq.h
cql.o: cql.l cqy.o
$(LEX) $(LEXFLAGS) cql.l
sed 's/YYcqwrap/yywrap/g' <lex.cq.c >cql.c
: patch -p0 <cql.c.patch
$(CC) $(CFLAGS) -c cql.c

cqy.c colq.h: cqy.y
Expand Down
28 changes: 28 additions & 0 deletions runform/colquery/cql.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
--- lex.cq.c 2024-10-06 16:51:44.618673492 +0200
+++ cql.c 2024-10-06 16:53:03.750677848 +0200
@@ -791,7 +791,9 @@
#endif
#endif

+#ifndef YY_NO_UNPUT
static void yyunput (int c,char *buf_ptr );
+#endif

#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
@@ -1658,6 +1660,7 @@
return yy_is_jam ? 0 : yy_current_state;
}

+#ifndef YY_NO_UNPUT
static void yyunput (int c, register char * yy_bp )
{
register char *yy_cp;
@@ -1694,6 +1697,7 @@
(yy_hold_char) = *yy_cp;
(yy_c_buf_p) = yy_cp;
}
+#endif

#ifndef YY_NO_INPUT
#ifdef __cplusplus

0 comments on commit 8ab131b

Please sign in to comment.