From e4f300cb90c922fbe41efbafb15d41f787fec411 Mon Sep 17 00:00:00 2001
From: Emmanuel Charpentier <emm.charpentier@free.fr>
Date: Wed, 14 Mar 2018 19:30:37 +0100
Subject: [PATCH 6/9] link

baseRegisterIndex should be declared extern

Otherwise linking breaks at least on Solaris

---
 src/include/GraphicsBase.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/GraphicsBase.h b/src/include/GraphicsBase.h
index 954eaff..e1122c5 100644
--- a/src/include/GraphicsBase.h
+++ b/src/include/GraphicsBase.h
@@ -41,6 +41,6 @@ void unregisterBase(void); /* used in devices.c */
 
 void Rf_setBaseDevice(Rboolean val, pGEDevDesc dd); /* used in graphics.c */
 
-int baseRegisterIndex;
+extern int baseRegisterIndex;
 
 #endif /* R_GRAPHICSBASE_ */
-- 
2.16.1

