From 46f08a0b96962a7df669bc6dbd689a333962ea20 Mon Sep 17 00:00:00 2001 From: Thomas Batten Date: Fri, 22 Jan 2021 20:35:20 +1030 Subject: [PATCH] extern definitions to fix build with gcc 10 --- include/dixstruct.h | 6 +++--- include/os.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/dixstruct.h b/include/dixstruct.h index 87527f2..5aa89e0 100644 --- a/include/dixstruct.h +++ b/include/dixstruct.h @@ -181,11 +181,11 @@ typedef struct _CallbackList { /* proc vectors */ -int (* InitialVector[3]) (ClientPtr /*client*/); +extern int (* InitialVector[3]) (ClientPtr /*client*/); -int (* ProcVector[256]) (ClientPtr /*client*/); +extern int (* ProcVector[256]) (ClientPtr /*client*/); -int (* SwappedProcVector[256]) (ClientPtr /*client*/); +extern int (* SwappedProcVector[256]) (ClientPtr /*client*/); extern const ReplySwapPtr ReplySwapVector[256]; diff --git a/include/os.h b/include/os.h index 2b354ba..f4bba97 100644 --- a/include/os.h +++ b/include/os.h @@ -90,7 +90,7 @@ typedef struct _NewClientRec *NewClientPtr; #define SIGVAL void #endif -void (*OsVendorVErrorFProc)(const char *, va_list args); +extern void (*OsVendorVErrorFProc)(const char *, va_list args); int WaitForSomething( int* /*pClientsReady*/