aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2019-07-15 17:11:02 -0400
committerKen Brown <kbrown@cornell.edu>2019-07-17 11:08:20 -0400
commit3a956a9bc3275f9052c5d97d4955f10341b1277c (patch)
tree388c40e5f8ba37fc2935cbe07c216c5c323a0a98 /winsup
parent81421eda7d408fe856319214332120fdbc8879c0 (diff)
downloadnewlib-3a956a9bc3275f9052c5d97d4955f10341b1277c.zip
newlib-3a956a9bc3275f9052c5d97d4955f10341b1277c.tar.gz
newlib-3a956a9bc3275f9052c5d97d4955f10341b1277c.tar.bz2
Cygwin: fix GCC 8.3 'local external declaration' errors
Move external declarations out of function definition.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygserver/bsd_mutex.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygserver/bsd_mutex.cc b/winsup/cygserver/bsd_mutex.cc
index 52531bc..13c5f90 100644
--- a/winsup/cygserver/bsd_mutex.cc
+++ b/winsup/cygserver/bsd_mutex.cc
@@ -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 ());