Skip to content

Commit

Permalink
Merge pull request #9 from speaktorob/master
Browse files Browse the repository at this point in the history
Workaround for broken build on BSD-based systems
  • Loading branch information
sean-lin committed Jun 12, 2014
2 parents f4f0d6d + 9f98512 commit 6109fd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protobuf/pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>

#ifdef _ALLBSD_SOURCE
#include <machine/endian.h>
#else
#include <endian.h>
#endif

#if __BYTE_ORDER == __LITTLE_ENDIAN
#define IS_LITTLE_ENDIAN
Expand Down

0 comments on commit 6109fd6

Please sign in to comment.