Bug 84541 - driver can fail to compile when config.h is used
Summary: driver can fail to compile when config.h is used
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/geode (show other bugs)
Version: 7.7 (2012.06)
Hardware: Other All
: medium normal
Assignee: X.org Geode Mailing List
QA Contact: X.org Geode Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-01 06:50 UTC by Brian Lloyd
Modified: 2014-10-04 20:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
adds standard config.h include to top of file (457 bytes, text/plain)
2014-10-01 06:50 UTC, Brian Lloyd
no flags Details

Description Brian Lloyd 2014-10-01 06:50:06 UTC
Created attachment 107165 [details]
adds standard config.h include to top of file

The src/lx_memory.c file uses the xf86.h header file.  This file must have HAVE_STRNDUP defined before calling it when the building platform has a strndup function.  When using config.h, this file doesn't have that define and so fails to compile.

The attached patch adds the conditional config.h to this file so it may compile on the affected platforms.

The patch is trivial and may be included and used under whatever licensing desired.

Signed-off-by: Brian A. Lloyd <brian.lloyd@familyhonor.net>
Comment 1 Martin-Éric Racine 2014-10-01 09:39:56 UTC
Thanks for this patch. 

Merged in upstream Git repository. 

Should be included in the upcoming xf86-video-geode 2.11.17 release.
Comment 2 Martin-Éric Racine 2014-10-04 20:36:49 UTC
PS: on exactly what platform does this happen?


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.