From 3d1605009bab2ddfe1562b56ed7f661809b5d98c Mon Sep 17 00:00:00 2001 From: Moreno Carullo Date: Mon, 3 Dec 2018 13:00:00 +0100 Subject: [PATCH] This simple change allows the library to be compiled under FreeBSD. --- include/amqpcpp/endian.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/amqpcpp/endian.h b/include/amqpcpp/endian.h index c6fab90..3e9831c 100644 --- a/include/amqpcpp/endian.h +++ b/include/amqpcpp/endian.h @@ -126,6 +126,13 @@ #define be64toh(x) betoh64(x) #define le64toh(x) letoh64(x) +/** + * FreeBSD handling + */ +#elif defined(__FreeBSD__) + +#include + /** * Not on apple, and not on windows */