From: Matthias Wachs Date: Tue, 12 Apr 2011 13:52:08 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~18705 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ae32a0fd4e808fa8ed7837c610f852590f7138c;p=oweals%2Fgnunet.git --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 48dd55de1..004ff02f3 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -5879,7 +5879,7 @@ static void ats_solve_problem (unsigned int max_it, unsigned int max_dur, unsig { int result; int solution; - +#if HAVE_LIBGLPK // Solving simplex glp_prob *prob = ats->prob; /* @@ -5974,6 +5974,7 @@ static void ats_solve_problem (unsigned int max_it, unsigned int max_dur, unsig GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s %f\n", glp_get_col_name(prob,2*c_mechs+2), glp_get_col_prim(prob,2*c_mechs+2)); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s %f\n", glp_get_col_name(prob,2*c_mechs+3), glp_get_col_prim(prob,2*c_mechs+3)); #endif +#endif } @@ -6364,7 +6365,7 @@ static int ats_create_problem (double D, double U, double R, int v_b_min, int v_ glp_add_rows(ats->prob, 1); #if VERBOSE_ATS GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "bounds [row]=[%i] \n",row_index); -#endif#endif +#endif glp_set_row_bnds(ats->prob, row_index, GLP_FX, 0.0, 0.0); for (c=1; c<=c_mechs; c++) {