Compatibility with FreeBSD

This commit is contained in:
Josh Lilly 2019-04-11 13:06:18 +10:00 committed by Fufu Fang
parent e38bd0fa80
commit 8ea19295a0
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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