Skip to content

Commit

Permalink
Only use freebsd header on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
baruch committed Oct 28, 2015
1 parent 4f96493 commit bfd7571
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hdrhistogram/src/hdr_histogram_log.c
Expand Up @@ -14,7 +14,6 @@
#include <ctype.h>
#include <math.h>
#include <time.h>
#include <sys/endian.h>

#include "hdr_encoding.h"
#include "hdr_histogram.h"
Expand All @@ -40,6 +39,10 @@
#define be64toh(x) OSSwapBigToHostInt64(x)
#define le64toh(x) OSSwapLittleToHostInt64(x)

#elif defined(FREEBSD)

#include <sys/endian.h>

#endif

// Private prototypes useful for the logger
Expand Down

0 comments on commit bfd7571

Please sign in to comment.