diff options
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index ba9cdfbc6..116482c60 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include "gnunet_signatures.h" | 38 | #include "gnunet_signatures.h" |
39 | #include "gnunet_transport_plugin.h" | 39 | #include "gnunet_transport_plugin.h" |
40 | #include "transport.h" | 40 | #include "transport.h" |
41 | #if HAVE_GLPK | 41 | #if HAVE_LIBGLPK |
42 | #include <glpk.h> | 42 | #include <glpk.h> |
43 | #endif | 43 | #endif |
44 | 44 | ||
@@ -5548,12 +5548,14 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
5548 | GNUNET_break (bl_head == NULL); | 5548 | GNUNET_break (bl_head == NULL); |
5549 | GNUNET_break (bc_head == NULL); | 5549 | GNUNET_break (bc_head == NULL); |
5550 | } | 5550 | } |
5551 | #if !HAVE_LIBGLPK | ||
5551 | 5552 | ||
5553 | void ats_create_problem(int peers, double b_min, double b_max, double r, const struct ATS_peer * list, int max_it, int max_dur) | ||
5554 | { | ||
5552 | 5555 | ||
5553 | 5556 | } | |
5554 | #if HAVE_GLPK | 5557 | #else |
5555 | 5558 | glp_prob * ats_create_problem (int peers, double b_min, double b_max, double r, const struct ATS_peer * list, int max_it, int max_dur) | |
5556 | glp_prob * ats_create_problem(int peers, double b_min, double b_max, double r, const struct ATS_peer * list, int max_it, int max_dur) | ||
5557 | { | 5559 | { |
5558 | int c1, c2; | 5560 | int c1, c2; |
5559 | glp_prob *lp; | 5561 | glp_prob *lp; |
@@ -5689,11 +5691,6 @@ glp_prob * ats_create_problem(int peers, double b_min, double b_max, double r, c | |||
5689 | //GNUNET_free(options); | 5691 | //GNUNET_free(options); |
5690 | return lp; | 5692 | return lp; |
5691 | } | 5693 | } |
5692 | #else | ||
5693 | void ats_create_problem(int peers, double b_min, double b_max, double r, const struct ATS_peer * list, int max_it, int max_dur) | ||
5694 | { | ||
5695 | |||
5696 | } | ||
5697 | #endif | 5694 | #endif |
5698 | 5695 | ||
5699 | void ats_calculate_bandwidth_distribution (struct ATS_info * ats) | 5696 | void ats_calculate_bandwidth_distribution (struct ATS_info * ats) |