components/graphviz/patches/gerrors-defs.patch
changeset 7859 d828b72ad743
equal deleted inserted replaced
7858:9f73487af259 7859:d828b72ad743
       
     1 The patch has been taken from community and fixes build issue of
       
     2 graphviz post ghostscript upgrade to 9.18
       
     3 The details can be found in the following location
       
     4 http://www.graphviz.org/mantisbt/view.php?id=2604
       
     5 
       
     6 diff --git a/plugin/gs/gvloadimage_gs.c b/plugin/gs/gvloadimage_gs.c
       
     7 index 4ed9b71..53be600 100644
       
     8 --- a/plugin/gs/gvloadimage_gs.c
       
     9 +++ b/plugin/gs/gvloadimage_gs.c
       
    10 @@ -72,11 +72,11 @@ static void gs_error(GVJ_t * job, const char *name, const char *funstr, int err)
       
    11  
       
    12      assert (err < 0);
       
    13  
       
    14 -    if (err >= e_VMerror) 
       
    15 +    if (err >= gs_error_VMerror)
       
    16  	errsrc = "PostScript Level 1"; 
       
    17 -    else if (err >= e_unregistered)
       
    18 +    else if (err >= gs_error_unregistered)
       
    19  	errsrc = "PostScript Level 2";
       
    20 -    else if (err >= e_invalidid)
       
    21 +    else if (err >= gs_error_invalidid)
       
    22  	errsrc = "DPS error";
       
    23      else
       
    24  	errsrc = "Ghostscript internal error";