updated fuse header includes

This commit is contained in:
Kelvin Sherlock 2016-08-16 12:12:08 -04:00
parent 184b69747a
commit 3885c06698
4 changed files with 11 additions and 25 deletions

View File

@ -1,13 +1,14 @@
CC = c++
CPPFLAGS += -Wall -W -Wno-multichar -Wno-c++11-narrowing -I. -O2 -g -std=c++11
LIBS += -lpthread
UNAME = $(shell uname -s)
ifeq ($(UNAME),Darwin)
FUSE_LIBS += -losxfuse
CPPFLAGS += -I/usr/local/include/osxfuse/fuse
# should use pkg-config but it may not be installed.
FUSE_LIBS += -losxfuse -pthread -liconv
CPPFLAGS += -I/usr/local/include/osxfuse/fuse -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE
else
FUSE_LIBS += -lfuse
CPPFLAGS += $(shell pkg-config --cflags fuse)
FUSE_LIBS += $(shell pkg-config --libs fuse)
endif
ifdef HAVE_NUFX

View File

@ -10,15 +10,10 @@
#include <unistd.h>
#ifdef __APPLE__
#define __DARWIN_64_BIT_INO_T 1
#endif
#define _FILE_OFFSET_BITS 64
#define FUSE_USE_VERSION 27
#include <fuse/fuse_opt.h>
#include <fuse/fuse_lowlevel.h>
#include <fuse_opt.h>
#include <fuse_lowlevel.h>
#include <Pascal/Pascal.h>
#include <Common/Exception.h>

View File

@ -1,9 +1,4 @@
#ifdef __APPLE__
#define __DARWIN_64_BIT_INO_T 1
#endif
#define _FILE_OFFSET_BITS 64
#define FUSE_USE_VERSION 27
#include <string>
@ -19,8 +14,8 @@
#include <fuse/fuse_opt.h>
#include <fuse/fuse_lowlevel.h>
#include <fuse_opt.h>
#include <fuse_lowlevel.h>

View File

@ -14,15 +14,10 @@
#include <ProDOS/common.h>
#ifdef __APPLE__
#define __DARWIN_64_BIT_INO_T 1
#endif
#define _FILE_OFFSET_BITS 64
#define FUSE_USE_VERSION 27
#include <fuse/fuse_opt.h>
#include <fuse/fuse_lowlevel.h>
#include <fuse_opt.h>
#include <fuse_lowlevel.h>
#undef ERROR