<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - driver can fail to compile when config.h is used"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84541">84541</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xorg-driver-geode@lists.x.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>driver can fail to compile when config.h is used
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-driver-geode@lists.x.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>brian.lloyd@familyhonor.net
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.7 (2011)
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/geode
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=107165" name="attach_107165" title="adds standard config.h include to top of file">attachment 107165</a> <a href="attachment.cgi?id=107165&action=edit" title="adds standard config.h include to top of file">[details]</a></span>
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 <<a href="mailto:brian.lloyd@familyhonor.net">brian.lloyd@familyhonor.net</a>></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>