Bug 15536 - FreeBSD doesn't have an alloca.h (it is in stdlib.h), so don't assume that it is there
Summary: FreeBSD doesn't have an alloca.h (it is in stdlib.h), so don't assume that it...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/radeonhd (show other bugs)
Version: git
Hardware: x86-64 (AMD64) FreeBSD
: medium normal
Assignee: Luc Verhaegen
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 10:18 UTC by Coleman Kane
Modified: 2008-04-16 13:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to us AC_CHECK_HEADERS to configure for alloca.h (919 bytes, patch)
2008-04-16 10:18 UTC, Coleman Kane
no flags Details | Splinter Review

Description Coleman Kane 2008-04-16 10:18:29 UTC
Created attachment 15953 [details] [review]
Patch to us AC_CHECK_HEADERS to configure for alloca.h

As said in the summary....

rhd_conntest assumes that alloca.h exists even though some platforms (like FreeBSD) don't have a system-wide alloca.h. Instead, the stdlib.h header includes all of the alloca bits.

The configure.ac and the utils/conntest/rhd_conntest.c files need to be fixed so that they can only #include <alloca.h> when it exists, and don't try it otherwise.
Comment 1 Egbert Eich 2008-04-16 13:33:57 UTC
Fixed in commit:
0ffd41e0840b437197d27451ba48a29d3808b77d


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.