Here is what I had to do to get this to compile on my Sun running
Red Hat 4.1 Sparc-Linux:
in the file src/backend/storage/file/fd.c:
#ifndef HAVE_SYSCONF
no_files = (long) NOFILE;
#else
/* no_files = sysconf(_SC_OPEN_MAX); */
no_files = getdtablesize();
if (no_files == -1)
{
elog(DEBUG, "pg_nofile: Unable to get _SC_OPEN_MAX
using sysconf() using (%d)", NOFILE);
no_files = (long) NOFILE;
}
#endif
Note that I had to use "getdtablesize()", instead of
"sysconf(_SC_OPEN_MAX)". It compiled with no errors after that change.
Sincerely,
Jimmie Farmer
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Eskimo North Shell Access, Web Hosting, 56K Internet Access, Two-Week Trial!
See our web site: http://www.eskimo.com (206) 361-1161 or (800) 246-6874.