Compatibility with FreeBSD
This commit is contained in:
parent
e38bd0fa80
commit
8ea19295a0
4
Makefile
4
Makefile
|
@ -1,7 +1,7 @@
|
|||
VERSION=1.0.3
|
||||
|
||||
CFLAGS+= -g -O2 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\"
|
||||
LDFLAGS+= -lgumbo -lcurl -lfuse -lcrypto
|
||||
CFLAGS+= -g -O2 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\" `pkg-config --cflags-only-I gumbo libcurl fuse`
|
||||
LDFLAGS+= -lgumbo -lcurl -lfuse -lcrypto `pkg-config --libs-only-L gumbo libcurl fuse`
|
||||
COBJS = main.o network.o fuse_local.o link.o
|
||||
|
||||
prefix ?= /usr/local
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <linux/limits.h>
|
||||
#ifdef __FreeBSD__
|
||||
#include <limits.h>
|
||||
#else
|
||||
#include <linux/limits.h>
|
||||
#endif
|
||||
|
||||
#define ARG_LEN_MAX 64
|
||||
|
||||
|
|
Loading…
Reference in New Issue