Skip to content

Commit 2e294a0

Browse files
committed
fix compilation when both HAVE_RS232DEV and HAVE_RS232NET are NOT defined, should fix #1641
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45863 379a1393-f5fb-40a0-bcee-ef074d9b53f7
1 parent 7f58c3b commit 2e294a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vice/src/rs232drv/rs232drv.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@
3535
#include "types.h"
3636
#include "util.h"
3737

38+
/* NOTE: always declare this array, so the rs232 code compiles without further
39+
ifdef hell, even when neither HAVE_RS232DEV nor HAVE_RS232NET is defined.
40+
Since BSS will be initialized with zeros, this will do the right thing in
41+
aciacore no matter what. */
42+
int rs232_useip232[RS232_NUM_DEVICES];
43+
3844
#if defined(HAVE_RS232DEV) || defined(HAVE_RS232NET)
3945

4046
char *rs232_devfile[RS232_NUM_DEVICES] = { NULL };
41-
int rs232_useip232[RS232_NUM_DEVICES];
4247

4348
static int set_devfile(const char *val, void *param)
4449
{

0 commit comments

Comments
 (0)