]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Make gcc and binding happy
authorDongsheng Song <songdongsheng@live.cn>
Sat, 4 May 2013 09:29:13 +0000 (17:29 +0800)
committerDongsheng Song <songdongsheng@live.cn>
Sat, 4 May 2013 09:29:13 +0000 (17:29 +0800)
configure.ac
src/rrd_graph_helper.c

index d6b2722b0e5ba46c192fafcebbe7afda89206669..9882c6c8687db1c3eeaa25a52fa5687f58bdf772 100644 (file)
@@ -85,7 +85,7 @@ AH_BOTTOM([
 #  include <malloc/malloc.h>
 #endif
 
-#include "src/rrd_config_bottom.h"
+#include "rrd_config_bottom.h"
 
 #endif
 ])
@@ -944,6 +944,10 @@ AC_CONFIG_COMMANDS([default],[[ chmod +x examples/*.pl]],[[]])
 dnl intl requires our config to be called config.h. indulge it.
 AC_CONFIG_COMMANDS_POST([ test -f config.h || ln -s rrd_config.h config.h ])
 
+dnl bindings use nasty path, just make them happy.
+AC_CONFIG_COMMANDS_POST([ test -f src/rrd_config.h || (cd src/ && ln -s ../rrd_config.h) ])
+AC_CONFIG_COMMANDS_POST([ test -f src/rrd_config_bottom.h || (cd src/ && ln -s ../rrd_config_bottom.h) ])
+
 AC_OUTPUT
 
 AC_MSG_CHECKING(in)
index aad4706f66193b77b7e26d0a2ad98d5cfa3d21bf..0b03cb86c37109e68ff8cb372c290df84d36f448 100644 (file)
@@ -735,7 +735,7 @@ graph_desc_t* newGraphDescription(image_desc_t *const im,enum gf_en gf,parsedarg
     gdp->cf=cf_conv(cf);
     if (((int)gdp->cf)==-1) { 
       rrd_set_error("bad CF: %s",cf); return NULL; }
-  } else { if (bitscmp(PARSE_CF)) { gdp->cf = (cf_en) -1; }}
+  } else { if (bitscmp(PARSE_CF)) { gdp->cf = (enum cf_en) -1; }}
   if ((color)&&(parse_color(color,&(gdp->col)))) { return NULL; }
   if ((color2)&&(parse_color(color2,&(gdp->col2)))) { return NULL; }
   if (rpn) {gdp->rpn=rpn;}
@@ -1388,7 +1388,7 @@ void rrd_graph_script(
        }
 
        /* convert to enum but handling LINE special*/
-       enum gf_en gf = (gf_en) -1;
+       enum gf_en gf = (enum gf_en) -1;
        gf=gf_conv(cmd);
        if ((int)gf == -1) {
          if (strncmp("LINE",cmd,4)==0) {