summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv
diff options
context:
space:
mode:
authorItamar Reis Peixoto <itamar@ispbrasil.com.br>2016-02-08 22:37:44 -0200
committerItamar Reis Peixoto <itamar@ispbrasil.com.br>2016-02-08 22:37:44 -0200
commitee436aeec9385a77cb547384575bcc2f9ad2746c (patch)
treed7fc2f98e36a9c06713284e450ad9bf98653346e /sesman/chansrv
parent40a197e7a8960fdaefb1e4bd90344c5734bd9e77 (diff)
parent2a5d204baaa84207e835af570d89b10a17083fae (diff)
downloadxrdp-proprietary-ee436aeec9385a77cb547384575bcc2f9ad2746c.tar.gz
xrdp-proprietary-ee436aeec9385a77cb547384575bcc2f9ad2746c.zip
Merge pull request #309 from proski/devel
Fixes for autotools, compile warnings and MacOS compatibility
Diffstat (limited to 'sesman/chansrv')
-rw-r--r--sesman/chansrv/Makefile.am12
-rw-r--r--sesman/chansrv/clipboard.c2
-rw-r--r--sesman/chansrv/clipboard_file.c1
-rw-r--r--sesman/chansrv/rail.c2
4 files changed, 10 insertions, 7 deletions
diff --git a/sesman/chansrv/Makefile.am b/sesman/chansrv/Makefile.am
index 755de786..45397b73 100644
--- a/sesman/chansrv/Makefile.am
+++ b/sesman/chansrv/Makefile.am
@@ -31,17 +31,17 @@ EXTRA_DEFINES += -DXRDP_OPUS
EXTRA_LIBS += -lopus
endif
-AM_CFLAGS = \
+AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
- $(EXTRA_DEFINES)
-
-INCLUDES = \
+ $(EXTRA_DEFINES) \
-I$(top_srcdir)/common \
$(EXTRA_INCLUDES)
+AM_CFLAGS = $(X_CFLAGS)
+
sbin_PROGRAMS = \
xrdp-chansrv
@@ -62,10 +62,10 @@ xrdp_chansrv_SOURCES = \
chansrv_common.c
xrdp_chansrv_LDFLAGS = \
+ $(X_LIBS) \
$(EXTRA_FLAGS)
xrdp_chansrv_LDADD = \
- -L/usr/X11R6/lib \
$(top_builddir)/common/libcommon.la \
- -lX11 -lXfixes -lXrandr \
+ $(X_PRE_LIBS) -lXfixes -lXrandr -lX11 $(X_EXTRA_LIBS) \
$(EXTRA_LIBS)
diff --git a/sesman/chansrv/clipboard.c b/sesman/chansrv/clipboard.c
index 5c2a2b22..11c37a16 100644
--- a/sesman/chansrv/clipboard.c
+++ b/sesman/chansrv/clipboard.c
@@ -176,6 +176,8 @@ x-special/gnome-copied-files
#define LOG_ERROR 0
#define LOG_INFO 1
#define LOG_DEBUG 2
+
+#undef LOG_LEVEL
#define LOG_LEVEL LOG_ERROR
#define log_error(_params...) \
diff --git a/sesman/chansrv/clipboard_file.c b/sesman/chansrv/clipboard_file.c
index e994585a..4f3f1ade 100644
--- a/sesman/chansrv/clipboard_file.c
+++ b/sesman/chansrv/clipboard_file.c
@@ -22,6 +22,7 @@
* CLIPRDR_FILEDESCRIPTOR
* http://msdn.microsoft.com/en-us/library/ff362447%28prot.20%29.aspx */
+#include <sys/time.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xfixes.h>
diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c
index f3777970..f12d8e3f 100644
--- a/sesman/chansrv/rail.c
+++ b/sesman/chansrv/rail.c
@@ -1775,7 +1775,7 @@ rail_configure_window(XConfigureEvent *config)
/*****************************************************************************/
static int
-rail_desktop_resize(lxevent)
+rail_desktop_resize(XEvent *lxevent)
{
LOG(0, ("rail_desktop_resize:"));
return 0;