Fix build errors on Linux (pthread library, signed comparison)

This commit is contained in:
Eric Fischer 2016-09-20 16:00:03 -07:00
parent 4fb54eaeeb
commit 083a280659
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ tippecanoe-decode: decode.o projection.o mvt.o
$(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
$(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)
$(CC) $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CFLAGS) -c -o $@ $<

View File

@ -20,7 +20,7 @@
std::string dequote(std::string s);
bool pk = false;
int CPUS;
size_t CPUS;
struct stats {
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;
if (pthread_join(pthreads[i], &retval) != 0) {