diff options
-rw-r--r-- | source3/include/includes.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index d35123dc73..c091506381 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -503,6 +503,10 @@ #include <langinfo.h> #endif +#ifdef HAVE_AIO_H +#include <aio.h> +#endif + /* Special macros that are no-ops except when run under Valgrind on * x86. They've moved a little bit from valgrind 1.0.4 to 1.9.4 */ #if HAVE_VALGRIND_MEMCHECK_H @@ -772,6 +776,29 @@ typedef int socklen_t; # endif #endif +/* + * Type for aiocb structure. + */ + +#ifndef SMB_STRUCT_AIOCB +# if defined(WITH_AIO) +# if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_AIOCB64) +# define SMB_STRUCT_AIOCB struct aiocb64 +# else +# define SMB_STRUCT_AIOCB struct aiocb +# endif +# else +# define SMB_STRUCT_AIOCB int /* AIO not being used but we still need the define.... */ +# endif +#endif + +#ifndef HAVE_STRUCT_TIMESPEC +struct timespec { + time_t tv_sec; /* Seconds. */ + long tv_nsec; /* Nanoseconds. */ +}; +#endif + #ifndef MIN #define MIN(a,b) ((a)<(b)?(a):(b)) #endif |