dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_VPRINTF
+dnl XXX don't want to re-enable code that's been unused for years at this
+dnl point, but should offer good performance improvements, check after
+dnl 4.4.2.1...
+dnl AC_FUNC_MMAP
AC_CHECK_FUNCS(basename getcwd getwd inet_aton mtrace putenv realpath setenv)
AC_CHECK_FUNCS(stpcpy stpncpy strcspn)
if (rc) goto exit;
if (writeData && S_ISREG(st->st_mode)) {
-#if HAVE_MMAP
+#ifdef HAVE_MMAP
char * rdbuf = NULL;
void * mapped = (void *)-1;
size_t nmapped;
if (rc) goto exit;
/* XXX unbuffered mmap generates *lots* of fdio debugging */
-#if HAVE_MMAP
+#ifdef HAVE_MMAP
nmapped = 0;
mapped = mmap(NULL, st->st_size, PROT_READ, MAP_SHARED, Fileno(fsm->rfd), 0);
if (mapped != (void *)-1) {
left = st->st_size;
while (left) {
-#if HAVE_MMAP
+#ifdef HAVE_MMAP
if (mapped != (void *)-1) {
fsm->rdnb = nmapped;
} else
left -= fsm->wrnb;
}
-#if HAVE_MMAP
+#ifdef HAVE_MMAP
/*@-branchstate@*/
if (mapped != (void *)-1) {
xx = msync(mapped, nmapped, MS_ASYNC);