server: Duplicate typedef definitions are not allowed in C99

This fixes some compilation errors with gcc 4.4.7 on RHEL 6.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
Francois Gouget 2015-11-16 10:20:56 +00:00 committed by Frediano Ziglio
parent bd2bbe2fdd
commit 37763930cd
3 changed files with 2 additions and 4 deletions

View File

@ -128,7 +128,6 @@ typedef struct OutgoingHandler {
/* Red Channel interface */
typedef struct RedsStream RedsStream;
typedef struct RedChannel RedChannel;
typedef struct RedChannelClient RedChannelClient;
typedef struct RedClient RedClient;

View File

@ -23,7 +23,6 @@
#include "red_channel.h"
typedef struct RedDispatcher RedDispatcher;
typedef struct RedChannelClient RedChannelClient;
typedef struct AsyncCommand AsyncCommand;

View File

@ -233,7 +233,7 @@ typedef struct RedSurface {
QXLReleaseInfoExt create, destroy;
} RedSurface;
typedef struct RedWorker {
struct RedWorker {
pthread_t thread;
clockid_t clockid;
QXLInstance *qxl;
@ -290,7 +290,7 @@ typedef struct RedWorker {
int driver_cap_monitors_config;
FILE *record_fd;
} RedWorker;
};
typedef enum {
BITMAP_DATA_TYPE_INVALID,