OK, so I’ve tracked back the commit where this was introduced… https://cgit.freedesktop.org/libreoffice/core/commit/sal/osl/unx/file.cxx?id=cbedb240486a21c5d5676e7a7f4e2ba17a55dbab <https://cgit.freedesktop.org/libreoffice/core/commit/sal/osl/unx/file.cxx?id=cbedb240486a21c5d5676e7a7f4e2ba17a55dbab> It appears that it might have been in a previous VCS (cvs?) and migrated to subversion. The provenance of the commit is unknown, but I think someone was being very conservative, or didn’t realise this has been available for a long time on BSD. Chris
On 23 Jun 2017, at 7:47 am, Chris Sherlock <chris.sherlock79@gmail.com> wrote: Nope, I’m mistaken. This has been in the FreeBSD sources since 1998! https://svnweb.freebsd.org/base/head/lib/libc/gen/sysconf.c?r1=12674&r2=34030 <https://svnweb.freebsd.org/base/head/lib/libc/gen/sysconf.c?r1=12674&r2=34030> ChrisOn 23 Jun 2017, at 7:39 am, Chris Sherlock <chris.sherlock79@gmail.com <mailto:chris.sherlock79@gmail.com>> wrote: sysconf() first appeared in BSD4.4, which was sometime before the year 2003 It’s been around for a long, long time. I’m genuinely unclear why we are checking for this, given that it has literally been in BSD for such a long time now! ChrisOn 23 Jun 2017, at 3:55 am, Noel Grandin <noelgrandin@gmail.com <mailto:noelgrandin@gmail.com>> wrote: The relevant question is not whether they support it __now__, but if they support it in the oldest version of those operating systems that we support. If you can find out when each of those OS's gained support for that, then we can possibly drop that support. At the very least, even if we don't drop support, we should add a comment there, so we know when we can drop support.