mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-01 16:58:05 +00:00
Fix build errors on Linux (pthread library, signed comparison)
This commit is contained in:
parent
4fb54eaeeb
commit
083a280659
2
Makefile
2
Makefile
@ -54,7 +54,7 @@ tippecanoe-decode: decode.o projection.o mvt.o
|
|||||||
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3
|
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3
|
||||||
|
|
||||||
tile-join: tile-join.o projection.o pool.o mbtiles.o mvt.o memfile.o
|
tile-join: tile-join.o projection.o pool.o mbtiles.o mvt.o memfile.o
|
||||||
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3
|
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
||||||
|
|
||||||
%.o: %.c $(ALL_H)
|
%.o: %.c $(ALL_H)
|
||||||
$(CC) $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CFLAGS) -c -o $@ $<
|
$(CC) $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CFLAGS) -c -o $@ $<
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
std::string dequote(std::string s);
|
std::string dequote(std::string s);
|
||||||
|
|
||||||
bool pk = false;
|
bool pk = false;
|
||||||
int CPUS;
|
size_t CPUS;
|
||||||
|
|
||||||
struct stats {
|
struct stats {
|
||||||
int minzoom;
|
int minzoom;
|
||||||
@ -414,7 +414,7 @@ void handle_tasks(std::map<zxy, std::vector<std::string>> &tasks, std::vector<st
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < CPUS; i++) {
|
for (size_t i = 0; i < CPUS; i++) {
|
||||||
void *retval;
|
void *retval;
|
||||||
|
|
||||||
if (pthread_join(pthreads[i], &retval) != 0) {
|
if (pthread_join(pthreads[i], &retval) != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user