Skip to content

Commit a17a6f3

Browse files
authored
Merge pull request mfontanini#172 from snar/freebsd-fix
Fix FreeBSD builds
2 parents c9c46d7 + ca729ef commit a17a6f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/cppkafka/detail/endianness.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
# define __LITTLE_ENDIAN LITTLE_ENDIAN
4343
# define __PDP_ENDIAN PDP_ENDIAN
4444

45-
#elif defined(__OpenBSD__)
45+
#elif defined(__OpenBSD__) || defined(__FreeBSD__)
4646

4747
# include <sys/endian.h>
4848

49-
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
49+
#elif defined(__NetBSD__) || defined(__DragonFly__)
5050

5151
# include <sys/endian.h>
5252

@@ -115,4 +115,4 @@
115115

116116
#endif
117117

118-
#endif // CPPKAFKA_PORTABLE_ENDIAN_H
118+
#endif // CPPKAFKA_PORTABLE_ENDIAN_H

0 commit comments

Comments
 (0)