svn commit: samba r23308 - in branches/SAMBA_3_0_26/source: .
include
metze at samba.org
metze at samba.org
Sat Jun 2 08:31:49 GMT 2007
Author: metze
Date: 2007-06-02 08:31:48 +0000 (Sat, 02 Jun 2007)
New Revision: 23308
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23308
Log:
merge from SAMBA_3_0:
fix build on hosts with missing readahead prototype
metze
Modified:
branches/SAMBA_3_0_26/source/configure.in
branches/SAMBA_3_0_26/source/include/includes.h
Changeset:
Modified: branches/SAMBA_3_0_26/source/configure.in
===================================================================
--- branches/SAMBA_3_0_26/source/configure.in 2007-06-02 08:30:42 UTC (rev 23307)
+++ branches/SAMBA_3_0_26/source/configure.in 2007-06-02 08:31:48 UTC (rev 23308)
@@ -5773,6 +5773,8 @@
[Whether Linux readahead is available])
fi
+AC_HAVE_DECL(readahead, [#include <fcntl.h>])
+
############################################
# See if we have the posix_fadvise syscall.
Modified: branches/SAMBA_3_0_26/source/include/includes.h
===================================================================
--- branches/SAMBA_3_0_26/source/include/includes.h 2007-06-02 08:30:42 UTC (rev 23307)
+++ branches/SAMBA_3_0_26/source/include/includes.h 2007-06-02 08:31:48 UTC (rev 23308)
@@ -1218,6 +1218,9 @@
#endif /* HAVE_LDAP */
+#if defined(HAVE_LINUX_READAHEAD) && ! defined(HAVE_READAHEAD_DECL)
+ssize_t readahead(int fd, off64_t offset, size_t count);
+#endif
/* TRUE and FALSE are part of the C99 standard and gcc, but
unfortunately many vendor compilers don't support them. Use True
More information about the samba-cvs
mailing list