diff options
author | Jeremy Allison <jra@samba.org> | 2005-06-27 22:08:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:58:04 -0500 |
commit | 4a681680312f321f4e87597faf214cbe93532cb3 (patch) | |
tree | b1270d44df6c9744249bd877699184afee799e72 /source3/include | |
parent | 15c6ae15c845c42dda2eb9c649d40df087d51441 (diff) | |
download | samba-4a681680312f321f4e87597faf214cbe93532cb3.tar.gz samba-4a681680312f321f4e87597faf214cbe93532cb3.tar.bz2 samba-4a681680312f321f4e87597faf214cbe93532cb3.zip |
r7959: Added aio structure and types.
Jeremy.
(This used to be commit 095c5dbc188ca4b093c774c8f04d79f7d342a8a6)
Diffstat (limited to 'source3/include')
-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 |