aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_common_logging_dummy.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-29 15:02:31 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-29 15:02:31 +0200
commit24cbb7fda2486ee9d2ae8e145d6ff8fe19df92b0 (patch)
tree243f60886e42d6e0ab771aa8a08faeb508ea7489 /src/util/test_common_logging_dummy.c
parent14b6de39c4316bb488d47dc07208a77dd0a85ef2 (diff)
downloadgnunet-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.c4
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)
50static int 52static int
51expensive_func () 53expensive_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;\