diff --git a/examples/db-insert-multiple.c b/examples/db-insert-multiple.c index 1dd24950c02..67e0f3d5bf4 100644 --- a/examples/db-insert-multiple.c +++ b/examples/db-insert-multiple.c @@ -12,6 +12,7 @@ // a is auto increment // b, c and d are random +#include "config.h" #include #include #include @@ -19,7 +20,12 @@ #include #include #include -#include +#if defined(HAVE_BYTESWAP_H) +# include +#elif defined(HAVE_LIBKERN_OSBYTEORDER_H) +# include +# define bswap_64 OSSwapInt64 +#endif #include #include "db.h"