diff --git a/Xserver/hw/rdp/rdpmisc.c b/Xserver/hw/rdp/rdpmisc.c index 6deed74c..48fafc30 100644 --- a/Xserver/hw/rdp/rdpmisc.c +++ b/Xserver/hw/rdp/rdpmisc.c @@ -685,6 +685,7 @@ xf86sprintf(char* s, const char* format, ...) { int ret; va_list args; + va_start(args, format); ret = vsprintf(s, format, args); va_end(args); @@ -731,14 +732,14 @@ xf86frexp(double x, int* exp) void* xf86memcpy(void* dest, const void* src, xf86size_t n) { - return memcpy(dest,src,(size_t)n); + return memcpy(dest, src, (size_t)n); } /*****************************************************************************/ int xf86memcmp(const void* s1, const void* s2, xf86size_t n) { - return memcmp(s1,s2,(size_t)n); + return memcmp(s1, s2, (size_t)n); } /*****************************************************************************/ @@ -933,6 +934,14 @@ xf86strtok(char* s1, const char* s2) return strtok(s1, s2); } +/*****************************************************************************/ +void +xf86qsort(void* base, xf86size_t nmemb, xf86size_t size, + int (*comp)(const void *, const void *)) +{ + qsort(base, nmemb, size, comp); +} + /*****************************************************************************/ char* xf86strcat(char* dest, const char* src) diff --git a/Xserver/readme.txt b/Xserver/readme.txt index ce3d5cc7..64ac65a8 100644 --- a/Xserver/readme.txt +++ b/Xserver/readme.txt @@ -4,7 +4,8 @@ readme for X11rdp server. Directions for Xfree 4.5, 4.6 and Xorg 6.9.0. make sure these are installed. -gcc, make, bison, flex, g++, ncursors +gcc, make, bison, flex, g++, ncursors, libpng-dev, expat-dev, +freetype-dev First run make World. This is the most dificult part.