[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 11 09:59:39 PDT 2015


Jon TURNEY <jon.turney at dronecode.org.uk> changed:

           What    |Removed                     |Added
                 CC|                            |jon.turney at dronecode.org.uk

--- Comment #9 from Jon TURNEY <jon.turney at dronecode.org.uk> ---
Created attachment 115698
  --> https://bugs.freedesktop.org/attachment.cgi?id=115698&action=edit
Fix compilation when sys/sysctl.h is not present

Unfortunately, this patch unconditionally includes sys/sysctl.h, which breaks
compilation for me (see

I can't find any evidence that sys/sysctl.h is required by POSIX.

Attached is an attempt to fix this.

Additionally, I'm not sure if any platform exists which has both interfaces,
but preferring sysctl() to sysconf() as this patch does, would mean on any such
platforms a different path would be used to that previously.

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150511/09996459/attachment.html>

More information about the mesa-dev mailing list