mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-04-16 23:19:01 +00:00
OpenBSD changes needed: Changed makefile using sh, changed main.cpp includes
This commit is contained in:
parent
4bb73aa6bc
commit
6ce6bc2a9c
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
PREFIX ?= /usr/local
|
||||
MANDIR ?= $(PREFIX)/share/man/man1/
|
||||
BUILDTYPE ?= Release
|
||||
SHELL = /bin/bash
|
||||
SHELL = /bin/sh
|
||||
|
||||
# inherit from env if set
|
||||
CC := $(CC)
|
||||
|
@ -63,6 +63,14 @@ $ make -j
|
||||
$ make install
|
||||
```
|
||||
|
||||
On OpenBSD
|
||||
```sh
|
||||
$ git clone https://github.com/mapbox/tippecanoe.git
|
||||
$ cd tippecanoe
|
||||
$ gmake
|
||||
$ doas gmake install
|
||||
```
|
||||
|
||||
See [Development](#development) below for how to upgrade your
|
||||
C++ compiler or install prerequisite packages if you get
|
||||
compiler errors.
|
||||
|
10
main.cpp
10
main.cpp
@ -39,7 +39,13 @@
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/mount.h>
|
||||
#else
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
#include <sys/types.h>
|
||||
#include <sys/mount.h>
|
||||
#endif
|
||||
|
||||
#if !defined(__APPLE__) && !defined(__OpenBSD__)
|
||||
#include <sys/statfs.h>
|
||||
#endif
|
||||
|
||||
@ -85,7 +91,7 @@ struct source {
|
||||
std::string layer = "";
|
||||
std::string file = "";
|
||||
std::string description = "";
|
||||
std::string format = "";
|
||||
std::string format = "";
|
||||
};
|
||||
|
||||
size_t CPUS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user