diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c
index 89698429740f304a931c74a2f867f8a5d870a836..ccf608db2d64fddb08737257cb7e1ac6d1b46bdd 100644
--- a/src/conio/ansi_cio.c
+++ b/src/conio/ansi_cio.c
@@ -70,9 +70,11 @@ static int		force_move=1;
 
 static DWORD orig_in_mode;
 static DWORD orig_out_mode;
+#ifdef _WIN32
 static CONSOLE_SCREEN_BUFFER_INFOEX orig_sbiex = {
 	.cbSize = sizeof(CONSOLE_SCREEN_BUFFER_INFOEX),
 };
+#endif
 
 /* Control sequence table definitions. */
 typedef struct