<p>It was impossible to compile mod_tile on FreeBSD (see issue <a href="https://github.com/openstreetmap/mod_tile/issues/114" class="issue-link" title="Compile errors on FreeBSD 10.1-RELEASE">#114</a> for details about the different problems).<br>
I used <code>#ifdef __FreeBSD__</code> blocks, so the changes will only affect FreeBSD users.<br>
Everything remains exactly the same for other operating systems. So it won't break anything.</p>
<p>You have to compile using</p>
<pre><code>make CPPFLAGS="-I/usr/local/include"
</code></pre>
<p>because I didn't know how to add preprocessor flags specifically for FreeBSD using autoconf.<br>
(and I wanted to be sure everything remains exactly the same for users of other operating systems).<br>
If you know how to do that, that would be great to add it to the Makefile.am of configure.ac or whatever file you're supposed to put that in.</p>
<p>I've been using mod_tile like this for a few days now and it works great.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/mod_tile/pull/116'>https://github.com/openstreetmap/mod_tile/pull/116</a></p>
<h4>Commit Summary</h4>
<ul>
<li>fixes for FreeBSD (see https://github.com/openstreetmap/mod_tile/issues/114 )</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/mod_tile/pull/116/files#diff-0">src/gen_tile_test.cpp</a>
(12)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/mod_tile/pull/116/files#diff-1">src/mod_tile.c</a>
(4)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/mod_tile/pull/116.patch'>https://github.com/openstreetmap/mod_tile/pull/116.patch</a></li>
<li><a href='https://github.com/openstreetmap/mod_tile/pull/116.diff'>https://github.com/openstreetmap/mod_tile/pull/116.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/mod_tile/pull/116">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7pj2KwqJKslDFaUqmIr5bvwoLv90ks5pDpSHgaJpZM4GeEWm.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/mod_tile/pull/116"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>