Pārlūkot izejas kodu

avoid varargs.h

Michael van Elst 23 gadi atpakaļ
vecāks
revīzija
fda5305657
2 mainītis faili ar 27 papildinājumiem un 3 dzēšanām
  1. 22 0
      pccts/pccts.patch
  2. 5 3
      pccts/pccts.spec

+ 22 - 0
pccts/pccts.patch

@@ -0,0 +1,22 @@
+--- pccts/sorcerer/lib/sorlist.c.dist	2003-07-18 18:04:50.000000000 +0200
++++ pccts/sorcerer/lib/sorlist.c	2003-07-18 18:05:11.000000000 +0200
+@@ -29,6 +29,8 @@
+ #include <stdio.h>
+ #include <setjmp.h>
+ 
++#include "pcctscfg.h"
++
+ #ifdef PCCTS_USE_STDARG
+ #include <stdarg.h>
+ #else
+--- pccts/sorcerer/lib/sintstack.c.dist	2003-07-18 18:08:17.000000000 +0200
++++ pccts/sorcerer/lib/sintstack.c	2003-07-18 18:08:32.000000000 +0200
+@@ -29,6 +29,8 @@
+ #include <stdio.h>
+ #include <setjmp.h>
+ 
++#include "pcctscfg.h"
++
+ #ifdef PCCTS_USE_STDARG
+ #include <stdarg.h>
+ #else

+ 5 - 3
pccts/pccts.spec

@@ -33,17 +33,18 @@ Distribution: OpenPKG [PLUS]
 Group:        Converter
 License:      GPL
 Version:      1.33mr33
-Release:      20020821
+Release:      20030718
 
 #   list of sources
 Source0:      http://www.polhode.com/pccts133mr.zip
 Source1:      http://www.antlr.org/papers/pcctsbk.pdf
+Patch0:       pccts.patch
 
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020206, infozip
-PreReq:       OpenPKG, openpkg >= 20020206
+BuildPreReq:  OpenPKG, openpkg >= 20030717, infozip
+PreReq:       OpenPKG, openpkg >= 20030717
 AutoReq:      no
 AutoReqProv:  no
 
@@ -55,6 +56,7 @@ AutoReqProv:  no
 %prep
     %setup -T -c
     %{l_prefix}/bin/unzip -q -x %{SOURCE0}
+    %patch -p0
 
 %build
     cd pccts