diff options
author | Jeremy Allison <jra@samba.org> | 2005-06-27 22:08:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2005-06-27 22:08:58 +0000 |
commit | 6d22857573dca7ca5cc84309ccfa2cada8466656 (patch) | |
tree | 5a9a55a24c9da1737ec60ab4f1b7fdfc287aef2f | |
parent | b711d14bca5168ca17b7bb8542a1b57b531bb950 (diff) | |
download | samba-6d22857573dca7ca5cc84309ccfa2cada8466656.tar.gz samba-6d22857573dca7ca5cc84309ccfa2cada8466656.tar.xz samba-6d22857573dca7ca5cc84309ccfa2cada8466656.zip |
r7959: Added aio structure and types.
Jeremy.
-rw-r--r-- | source/include/includes.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index d35123dc73c..c091506381f 100644 --- a/source/include/includes.h +++ b/source/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 |