json/json.patch

Wed, 01 Aug 2012 23:49:03 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 01 Aug 2012 23:49:03 +0200
changeset 436
f26e9329b115
permissions
-rw-r--r--

Hack rpmconstant header file to allow targets to build, because...
Solaris studio cc(1) fails to build targets in rpmconstant with errors:
'undefined symbol first referenced in file constant.o' regarding symbols:
rpmdsInit, rpmdsNext, rpmdsTagN, rpmHeaderFormats, hdrVec, rpmTagTable,
rpmdsSearch, rpmdsResult, rpmTags, rpmdsIx, rpmdsDNEVR, rpmdsSetResult.
It seems that these symbols are not used by RPM in any way, and thus
the build configuration can succeed without including the nasty headers.

     1 Index: zzjson-1.1.0/src/zzjson_parse.c
     2 --- zzjson-1.1.0/src/zzjson_parse.c.orig	2009-08-16 02:49:38 +0200
     3 +++ zzjson-1.1.0/src/zzjson_parse.c	2009-11-18 19:49:55 +0100
     4 @@ -9,6 +9,7 @@
     5  #include <math.h>
     6  #include <stdio.h>
     8 +#undef getchar
     9  #define GETC()          config->getchar(config->ihandle)
    10  #define UNGETC(c)       config->ungetchar(c, config->ihandle)
    11  #define SKIPWS()        skipws(config)

mercurial