diff --git a/builds/cmake/platform.hpp.in b/builds/cmake/platform.hpp.in index 03a14700..8e6fb402 100644 --- a/builds/cmake/platform.hpp.in +++ b/builds/cmake/platform.hpp.in @@ -75,10 +75,15 @@ #define ZMQ_HAVE_MINGW32 #endif -#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #define ZMQ_HAVE_FREEBSD #endif +#if defined(__DragonFly__) + #define ZMQ_HAVE_FREEBSD + #define ZMQ_HAVE_DRAGONFLY +#endif + #if defined __hpux #define ZMQ_HAVE_HPUX #endif diff --git a/configure.ac b/configure.ac index 9b2aa640..083c9e20 100644 --- a/configure.ac +++ b/configure.ac @@ -233,6 +233,7 @@ case "${host_os}" in ;; *dragonfly*) CPPFLAGS="-D__BSD_VISIBLE $CPPFLAGS" + AC_DEFINE(ZMQ_HAVE_FREEBSD, 1, [Have DragonFly OS]) AC_DEFINE(ZMQ_HAVE_DRAGONFLY, 1, [Have DragonFly OS]) ;; *darwin*)