<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - hard dependency on scandir"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91088">91088</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>hard dependency on scandir
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>fontconfig
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Solaris
          </td>
        </tr>

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>fontconfig-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>multix@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>freedesktop@behdad.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

building on solaris 9 (and older) fails because the existing scandir()
implementatino is inside the UCB layer (additional  -I and -L flags needed) but
it is also slightly different in the parameters (direct vs. dirent). I couldn't
get configure to pass, I don't even know about the code. Perhaps it can be
done, but it is worth?

<a href="https://answers.yahoo.com/question/index?qid=1006050301563">https://answers.yahoo.com/question/index?qid=1006050301563</a>


Some other odd OSs apparently do not have scandir() available at all.

I propose to have a fallback version supplied to make fontconfig more portable.

E.g. look at this patch NetBSD applies in its portable package:

<a href="http://pkgsrc.se/files.php?messageId=20140715144835.1658296@cvs.netbsd.org">http://pkgsrc.se/files.php?messageId=20140715144835.1658296@cvs.netbsd.org</a>

Instead of enabling for just one OS, perhaps it should be enabled it configure
fails the test.

Thanks, Riccardo</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>