Skip to content
Snippets Groups Projects
Verified Commit aa8e24f3 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Tomas Krizek
Browse files

daemon/udp_queue: appease the linker if not optimized

parent 7571ff7d
No related branches found
No related tags found
1 merge request!856Release 4.2.0
......@@ -17,13 +17,6 @@
#include "kresconfig.h"
#include "daemon/udp_queue.h"
#if !ENABLE_SENDMMSG
int udp_queue_init_global(uv_loop_t *loop)
{
return 0;
}
#else
#include "daemon/session.h"
#include "daemon/worker.h"
#include "lib/generic/array.h"
......@@ -32,9 +25,21 @@ int udp_queue_init_global(uv_loop_t *loop)
struct qr_task;
#include <assert.h>
#include <stdlib.h>
#include <sys/socket.h>
#if !ENABLE_SENDMMSG
int udp_queue_init_global(uv_loop_t *loop)
{
return 0;
}
/* Appease the linker in case this unused call isn't optimized out. */
void udp_queue_push(int fd, struct kr_request *req, struct qr_task *task)
{
abort();
}
#else
/* LATER: it might be useful to have this configurable during runtime,
* but the structures below would have to change a little (broken up). */
#define UDP_QUEUE_LEN 64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment