fix some header #include problems

This commit is contained in:
Sears Russell 2011-02-22 19:12:38 +00:00
parent fb5791e7e4
commit de8bf53e98
9 changed files with 15 additions and 12 deletions

View file

@ -1,3 +1,4 @@
#define __USE_GNU
#define _GNU_SOURCE #define _GNU_SOURCE
#cmakedefine HAVE_FDATASYNC #cmakedefine HAVE_FDATASYNC
#cmakedefine HAVE_SYNC_FILE_RANGE #cmakedefine HAVE_SYNC_FILE_RANGE
@ -8,6 +9,6 @@
#cmakedefine HAVE_TDESTROY #cmakedefine HAVE_TDESTROY
#cmakedefine HAVE_POWL #cmakedefine HAVE_POWL
#cmakedefine DBUG_TEST #cmakedefine DBUG_TEST
#ifndef HAVE_PTHREAD_STACK_MIN //#ifndef HAVE_PTHREAD_STACK_MIN
#define PTHREAD_STACK_MIN 32768 // wild guess. //#define PTHREAD_STACK_MIN 32768 // wild guess.
#endif //#endif

View file

@ -1,4 +1,5 @@
#include <config.h> #include <config.h>
#include <stasis/common.h>
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
#include <alloca.h> #include <alloca.h>
#endif #endif

View file

@ -1,4 +1,5 @@
#include <config.h> #include <config.h>
#include <stasis/common.h>
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
#include <alloca.h> #include <alloca.h>
#endif #endif

View file

@ -1,6 +1,6 @@
#include <config.h> #include <config.h>
#include <fcntl.h>
#include <stasis/common.h> #include <stasis/common.h>
#include <fcntl.h>
#include <stasis/io/handle.h> #include <stasis/io/handle.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,10 +1,9 @@
#define _SVID_SOURCE #include <config.h>
#define _BSD_SOURCE #include <stasis/common.h>
#include <dirent.h> #include <dirent.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <stasis/common.h>
#include <stasis/flags.h> #include <stasis/flags.h>
#include <stasis/latches.h> #include <stasis/latches.h>

View file

@ -1,4 +1,5 @@
#include <config.h> #include <config.h>
#include <stasis/common.h>
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
#include <alloca.h> #include <alloca.h>
#endif #endif

View file

@ -63,6 +63,8 @@ terms specified in this license.
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600 #define _XOPEN_SOURCE 600
#endif #endif
#include <stdint.h> // uint32, et. al. (has to be before sys/types.h for mcpp atop some broken gcc headers)
#include <fcntl.h>
#include <sys/types.h> // for size_t #include <sys/types.h> // for size_t
#ifdef __cplusplus #ifdef __cplusplus
@ -73,8 +75,6 @@ terms specified in this license.
# define END_C_DECLS # define END_C_DECLS
#endif /* __cplusplus */ #endif /* __cplusplus */
#include <stdint.h> // uint32, et. al.
#include <limits.h> #include <limits.h>
//#if STDC_HEADERS //#if STDC_HEADERS
@ -164,6 +164,8 @@ typedef struct {
*/ */
typedef struct Page_s Page; typedef struct Page_s Page;
extern long long *stasis_dbug_timestamp;
#define STLSEARCH #define STLSEARCH
#include "compensations.h" #include "compensations.h"

View file

@ -1,4 +1,5 @@
#include <config.h> #include <config.h>
#include <stasis/common.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -6,8 +7,6 @@
#include "check_impl.h" #include "check_impl.h"
#include <stasis/common.h>
uint64_t myrandom(uint64_t x) { uint64_t myrandom(uint64_t x) {
double xx = x; double xx = x;
double r = random(); double r = random();

View file

@ -43,7 +43,6 @@ terms specified in this license.
#include "../check_includes.h" #include "../check_includes.h"
#include <stasis/allocationPolicy.h> #include <stasis/allocationPolicy.h>
#include <stasis/common.h>
#include <stasis/constants.h> #include <stasis/constants.h>
#include <sys/time.h> #include <sys/time.h>