On 2015-01-03 10:00, Emil Velikov wrote:
On 02/01/15 04:14, Jeremy Huddleston Sequoia wrote:
This is certainly not the best solution to the problem, so I'm just sending this patch to the list to get the discussion started on the best way to solve this problem. Currently, any platform that does not support _SC_PHYS_PAGES and _SC_PAGESIZE will fail to build swrast. _SC_PHYS_PAGES is not POSIX and thus there are many platforms out there that don't support it (such as OS X).

With the indentation fixed and a guard around the new includes this
should be safe to go as is. Pretty sure the latter don't exist on all of
mesa's supported platforms. Cc'ing Alexander (Haiku).


Actually, Haiku is good to go here :-)

~> grep -R "_SC_PHYS_PAGES" /boot/system/develop/headers/
/boot/system/develop/headers/posix/unistd.h:#define _SC_PHYS_PAGES 40

~> grep -R "_SC_PAGESIZE" /boot/system/develop/headers/
/boot/system/develop/headers/posix/unistd.h:#define _SC_PAGESIZE _SC_PAGE_SIZE

~> grep -R "sysconf" /boot/system/develop/headers/
.
.
/boot/system/develop/headers/posix/unistd.h:/* sysconf() constants */
/boot/system/develop/headers/posix/unistd.h:extern long sysconf(int name); /boot/system/develop/headers/private/libroot/unistd_private.h:long __sysconf_beos(int name); /boot/system/develop/headers/private/libroot/unistd_private.h:long __sysconf(int name);
.
.

Thanks!

 -- Alex
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to