summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-06-21 16:30:18 -0700
committerPavel Roskin <plroskin@gmail.com>2016-07-08 04:29:48 +0000
commit6ab8c5ac6e444e507d0875c3409c576044750b01 (patch)
treeb35373d24ba6c24779d3f18e037b4f7f1e9f3e13
parentbde4925f0eb01c319086d1d1cc156e7090c0a2d9 (diff)
downloadxrdp-proprietary-6ab8c5ac6e444e507d0875c3409c576044750b01.tar.gz
xrdp-proprietary-6ab8c5ac6e444e507d0875c3409c576044750b01.zip
Don't include X11/Xlib.h for XPoint, define a replacement
XRDP modules are not X11 clients and should not generally need X11 headers. There is no need to match the X11 structure.
-rw-r--r--neutrinordp/xrdp-neutrinordp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/neutrinordp/xrdp-neutrinordp.c b/neutrinordp/xrdp-neutrinordp.c
index 8290b049..9fb3b20d 100644
--- a/neutrinordp/xrdp-neutrinordp.c
+++ b/neutrinordp/xrdp-neutrinordp.c
@@ -22,7 +22,6 @@
#include "xrdp_rail.h"
#include "log.h"
#include <freerdp/settings.h>
-#include <X11/Xlib.h>
#ifdef XRDP_DEBUG
#define LOG_LEVEL 99
@@ -1368,7 +1367,9 @@ lfreerdp_polygon_sc(rdpContext *context, POLYGON_SC_ORDER *polygon_sc)
{
struct mod *mod;
int i, npoints;
- XPoint points[4];
+ struct {
+ short x, y;
+ } points[4];
int fgcolor;
int server_bpp, client_bpp;