Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation fails if -DWITH_LIBRD present. Fixed. #13

Merged
merged 1 commit into from
Aug 2, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions rdkafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ static void rd_kafka_op_reply (rd_kafka_t *rk,
uint64_t offset_len);


#ifndef WITH_LIBRD
/**
* Minimalistic replacement for rd_tsprintf() in case librd is not available.
*/
Expand Down Expand Up @@ -169,8 +168,6 @@ static int pthread_cond_timedwait_ms (pthread_cond_t *cond,
return pthread_cond_timedwait(cond, mutex, &ts);
}

#endif


static void rd_kafka_log (const rd_kafka_t *rk, int level,
const char *fac, const char *fmt, ...) {
Expand Down
5 changes: 2 additions & 3 deletions rdkafka.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@
#include "rd.h"
#include "rdaddr.h"

#define RD_POLL_INFINITE -1
#define RD_POLL_NOWAIT 0

#else

#include <librd/rd.h>
#include <librd/rdaddr.h>
#endif

#define RD_POLL_INFINITE -1
#define RD_POLL_NOWAIT 0
#define RD_KAFKA_TOPIC_MAXLEN 256

typedef enum {
Expand Down