-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Description
Hey Magnus,
I am trying to compile Librdkafka on OSX with the following platform env:
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
A couple of issues showed up:
- the -rdynamic switch is not supported on OSX
- byteswap.h is not available on OSX, that can be fixed using the following:
if defined(APPLE)
include <libkern/OSByteOrder.h>
define le32toh OSSwapLittleToHostInt32
define htole32 OSSwapHostToLittleInt32
define bswap_32 OSSwapInt32
else
#include <byteswap.h>
endif
- The TIMEVAL_TO_TIMESPEC from rdtime.h can be removed
- OSX has an incompatible sys queue.h
- replace strndupa with strndup
Best,
D
Metadata
Metadata
Assignees
Labels
No labels