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

[PATCH] osm2pgsql: replace index with strchr in parse-primitive.c #3607

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: mobrob
[Submitted to the original trac issue database at 3.53pm, Friday, 25th March 2011]

While trying to build osm2pgsql in MinGW I had the problem that the usage of function "index" in parse-primitive.c is causing problems as this function does not exist in MinGW environment.

From what I know index has been superseded by strchr which has exactly the same signature and syntax.

The attached patch does simply replace all occurrences of "index" in parse-primitive.c with "strchr" so that it can be build.

As strchr should be available also on other platforms this should not have an negative impact.

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 8.55pm, Saturday, 27th October 2012]

Thanks for the patch. I have now committed an equivalent patch in r28865.

Are there any other issues needed to get osm2pgsql compiled in MinGW?

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