Use FUSE_CFLAGS and FUSE_LIBS from pkg-config

Include <fuse_lowlevel.h>, not <fuse/fuse_lowlevel.h>, the include path
should be set up for that.

Don't define _FILE_OFFSET_BITS in one file, FUSE_CFLAGS would enable it
for the whole xrdp-chansrv build if needed.
master
Pavel Roskin 8 years ago
parent 589b29f92f
commit 4234ed278e

@ -8,8 +8,8 @@ AM_CPPFLAGS = \
CHANSRV_EXTRA_LIBS = CHANSRV_EXTRA_LIBS =
if XRDP_FUSE if XRDP_FUSE
AM_CPPFLAGS += -DXRDP_FUSE AM_CPPFLAGS += -DXRDP_FUSE $(FUSE_CFLAGS)
CHANSRV_EXTRA_LIBS += -lfuse CHANSRV_EXTRA_LIBS += $(FUSE_LIBS)
endif endif
if XRDP_OPUS if XRDP_OPUS

@ -87,9 +87,8 @@ void xfuse_devredir_cb_file_close(void *vp) {}
******************************************************************************/ ******************************************************************************/
#define FUSE_USE_VERSION 26 #define FUSE_USE_VERSION 26
#define _FILE_OFFSET_BITS 64
#include <fuse/fuse_lowlevel.h> #include <fuse_lowlevel.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>

Loading…
Cancel
Save