diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-29 15:02:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-29 15:02:31 +0200 |
commit | 24cbb7fda2486ee9d2ae8e145d6ff8fe19df92b0 (patch) | |
tree | 243f60886e42d6e0ab771aa8a08faeb508ea7489 /src/util/test_common_logging_dummy.c | |
parent | 14b6de39c4316bb488d47dc07208a77dd0a85ef2 (diff) | |
download | gnunet-24cbb7fda2486ee9d2ae8e145d6ff8fe19df92b0.tar.gz gnunet-24cbb7fda2486ee9d2ae8e145d6ff8fe19df92b0.zip |
fix FTBFS issues if --enable-logging=no is set
Diffstat (limited to 'src/util/test_common_logging_dummy.c')
-rw-r--r-- | src/util/test_common_logging_dummy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/test_common_logging_dummy.c b/src/util/test_common_logging_dummy.c index 0d971eac5..cb191ddab 100644 --- a/src/util/test_common_logging_dummy.c +++ b/src/util/test_common_logging_dummy.c | |||
@@ -47,11 +47,15 @@ my_log (void *ctx, enum GNUNET_ErrorType kind, const char *component, | |||
47 | fflush (stdout); | 47 | fflush (stdout); |
48 | } | 48 | } |
49 | 49 | ||
50 | |||
51 | #if !defined(GNUNET_CULL_LOGGING) | ||
50 | static int | 52 | static int |
51 | expensive_func () | 53 | expensive_func () |
52 | { | 54 | { |
53 | return GNUNET_NETWORK_socket_select (NULL, NULL, NULL, OUTPUT_DELAY); | 55 | return GNUNET_NETWORK_socket_select (NULL, NULL, NULL, OUTPUT_DELAY); |
54 | } | 56 | } |
57 | #endif | ||
58 | |||
55 | 59 | ||
56 | #define pr(kind,lvl) {\ | 60 | #define pr(kind,lvl) {\ |
57 | struct GNUNET_TIME_Absolute t1, t2;\ | 61 | struct GNUNET_TIME_Absolute t1, t2;\ |