refs #5368 make our db-insert-multiple example (more) portable

git-svn-id: file:///svn/toku/tokudb@48188 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Leif Walsh 2013-04-17 00:01:09 -04:00 committed by Yoni Fogel
parent bf7bd25c4f
commit 169c59122f

View file

@ -12,6 +12,7 @@
// a is auto increment
// b, c and d are random
#include "config.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
@ -19,7 +20,12 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <byteswap.h>
#if defined(HAVE_BYTESWAP_H)
# include <byteswap.h>
#elif defined(HAVE_LIBKERN_OSBYTEORDER_H)
# include <libkern/OSByteOrder.h>
# define bswap_64 OSSwapInt64
#endif
#include <arpa/inet.h>
#include "db.h"