summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
Diffstat (limited to 'sesman')
-rw-r--r--sesman/chansrv/Makefile.am7
-rw-r--r--sesman/chansrv/chansrv_fuse.c11
-rw-r--r--sesman/chansrv/clipboard_file.c7
3 files changed, 13 insertions, 12 deletions
diff --git a/sesman/chansrv/Makefile.am b/sesman/chansrv/Makefile.am
index b6b6de2b..4272eb0e 100644
--- a/sesman/chansrv/Makefile.am
+++ b/sesman/chansrv/Makefile.am
@@ -10,6 +10,11 @@ EXTRA_DEFINES += -DXRDP_SIMPLESOUND
EXTRA_LIBS += -lpthread -lpulse -lpulse-simple
endif
+if XRDP_FUSE
+EXTRA_DEFINES += -DXRDP_FUSE
+EXTRA_LIBS += -lfuse
+endif
+
AM_CFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
@@ -36,7 +41,7 @@ xrdp_chansrv_SOURCES = \
chansrv_fuse.c
xrdp_chansrv_LDFLAGS = \
- $(EXTRA_FLAGS) -lfuse
+ $(EXTRA_FLAGS)
xrdp_chansrv_LDADD = \
-L/usr/X11R6/lib \
diff --git a/sesman/chansrv/chansrv_fuse.c b/sesman/chansrv/chansrv_fuse.c
index 1c63f66c..d6a0daa5 100644
--- a/sesman/chansrv/chansrv_fuse.c
+++ b/sesman/chansrv/chansrv_fuse.c
@@ -16,9 +16,7 @@
* limitations under the License.
*/
-#define XRDP_USE_FUSE 1
-
-#ifdef XRDP_USE_FUSE
+#ifdef XRDP_FUSE
#define FUSE_USE_VERSION 26
#define _FILE_OFFSET_BITS 64
@@ -54,14 +52,13 @@ static char *g_mountpoint = 0;
static tintptr g_bufsize = 0;
static char *g_buffer = 0;
static int g_fd = 0;
-
-struct file_item *g_file_items = 0;
-int g_file_items_count = 0;
-
static time_t g_time = 0;
static int g_uid = 0;
static int g_gid = 0;
+extern struct file_item *g_file_items; /* in chansrv_file.c */
+extern int g_file_items_count; /* in chansrv_file.c */
+
struct dirbuf
{
char *p;
diff --git a/sesman/chansrv/clipboard_file.c b/sesman/chansrv/clipboard_file.c
index 394ab6f6..9175bfaf 100644
--- a/sesman/chansrv/clipboard_file.c
+++ b/sesman/chansrv/clipboard_file.c
@@ -47,15 +47,14 @@
} \
while (0)
+struct file_item *g_file_items = 0;
+int g_file_items_count = 0;
+
extern int g_cliprdr_chan_id; /* in chansrv.c */
extern struct clip_s2c g_clip_s2c; /* in clipboard.c */
extern struct clip_c2s g_clip_c2s; /* in clipboard.c */
-extern struct file_item *g_file_items; /* in chansrv_fuse.c */
-extern int g_file_items_count; /* in chansrv_fuse.c */
-
-
struct cb_file_info
{
char pathname[256];