svn commit: samba r7959 - in branches/SAMBA_3_0/source/include: .
jra at samba.org
jra at samba.org
Mon Jun 27 22:08:59 GMT 2005
Author: jra
Date: 2005-06-27 22:08:58 +0000 (Mon, 27 Jun 2005)
New Revision: 7959
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7959
Log:
Added aio structure and types.
Jeremy.
Modified:
branches/SAMBA_3_0/source/include/includes.h
Changeset:
Modified: branches/SAMBA_3_0/source/include/includes.h
===================================================================
--- branches/SAMBA_3_0/source/include/includes.h 2005-06-27 22:07:28 UTC (rev 7958)
+++ branches/SAMBA_3_0/source/include/includes.h 2005-06-27 22:08:58 UTC (rev 7959)
@@ -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 @@
# 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
More information about the samba-cvs
mailing list