Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

[patch] explicitly include linux.h in mod_tile to compile for gcc 4.3 #914

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: dylan.semler[at]gmail.com
[Submitted to the original trac issue database at 6.55pm, Monday, 19th May 2008]

This patch explicitly adds #include <linux/linux.h> to speedtest.cpp and render_list.c in order to get mod_tile to compile with gcc 4.3.0.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 7.09am, Tuesday, 20th May 2008]

Can you clarify what it is in the code that requires the inclusion of linux/linux.h exactly - it shouldn't normally be necessary to include that in any user code, so I would like to see if there is a more portable solution to the problem you are encountering.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 7.47am, Tuesday, 20th May 2008]

OK - I think I've sorted this. I assume it was the PATH_MAX definition you were having problems with? That's what I was seeing on Fedora 9 though I'm not sure if gcc 4.3 or glibc 2.8 was the trigger.

The correct fix is to include limits.h rather than a linux specific file, and I have now committed that as r7866.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant