Cygwin: fix GCC 8.3 'local external declaration' errors

Move external declarations out of function definition.
This commit is contained in:
Ken Brown 2019-07-15 17:11:02 -04:00
parent 81421eda7d
commit 3a956a9bc3
1 changed files with 2 additions and 3 deletions

View File

@ -275,13 +275,12 @@ public:
};
static msleep_sync_array *msleep_sync;
extern struct msginfo msginfo;
extern struct seminfo seminfo;
void
msleep_init (void)
{
extern struct msginfo msginfo;
extern struct seminfo seminfo;
msleep_glob_evt = CreateEvent (NULL, TRUE, FALSE, NULL);
if (!msleep_glob_evt)
panic ("CreateEvent in msleep_init failed: %u", GetLastError ());