2013-04-16 23:57:20 -04:00
|
|
|
#ifndef SYSINCLUDES_H
|
|
|
|
#define SYSINCLUDES_H
|
|
|
|
|
|
|
|
#ifndef _XOPEN_SOURCE
|
|
|
|
#define _XOPEN_SOURCE 500
|
|
|
|
#endif
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
|
2013-04-16 23:57:21 -04:00
|
|
|
// Portability first!
|
2013-04-16 23:57:27 -04:00
|
|
|
#include "stdint.h"
|
2013-04-16 23:57:29 -04:00
|
|
|
#include "toku_portability.h"
|
2013-04-16 23:57:28 -04:00
|
|
|
#include "toku_os.h"
|
2013-04-16 23:57:21 -04:00
|
|
|
|
2013-04-16 23:57:28 -04:00
|
|
|
#if TOKU_WINDOWS
|
2013-04-16 23:57:27 -04:00
|
|
|
#include "zlib.h"
|
|
|
|
#include "toku_pthread.h"
|
|
|
|
#include <dirent.h>
|
|
|
|
#else
|
2013-04-16 23:57:20 -04:00
|
|
|
#include <dirent.h>
|
2013-04-16 23:57:20 -04:00
|
|
|
#include <inttypes.h>
|
2013-04-16 23:57:27 -04:00
|
|
|
#include <toku_pthread.h>
|
2013-04-16 23:57:20 -04:00
|
|
|
#include <sys/file.h>
|
2013-04-16 23:57:20 -04:00
|
|
|
#include <sys/resource.h>
|
2013-04-16 23:57:20 -04:00
|
|
|
#include <sys/time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <zlib.h>
|
2013-04-16 23:57:21 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <malloc.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2013-04-16 23:57:20 -04:00
|
|
|
|
|
|
|
#include "block_allocator.h"
|
|
|
|
#include "brt.h"
|
|
|
|
#include "brt-internal.h"
|
|
|
|
#include "cachetable.h"
|
|
|
|
#include "cachetable-rwlock.h"
|
|
|
|
#include "fifo.h"
|
|
|
|
#include "list.h"
|
|
|
|
#include "key.h"
|
|
|
|
#include "kv-pair.h"
|
|
|
|
#include "leafentry.h"
|
|
|
|
#include "log-internal.h"
|
|
|
|
#include "log_header.h"
|
|
|
|
#include "mempool.h"
|
|
|
|
#include "rbuf.h"
|
|
|
|
#include "threadpool.h"
|
|
|
|
#include "toku_assert.h"
|
|
|
|
#include "wbuf.h"
|
|
|
|
|
|
|
|
#include "../include/db.h"
|
|
|
|
|
|
|
|
#endif
|