[Mesa-dev] [PATCH] swrast: Build fix for darwin
kallisti5
kallisti5 at ssl.unixzen.com
Sat Jan 3 08:24:34 PST 2015
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
More information about the mesa-dev
mailing list