aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorMohan Embar <gnustuff@thisiscool.com>2004-09-05 03:36:19 +0000
committerMohan Embar <membar@gcc.gnu.org>2004-09-05 03:36:19 +0000
commit56fa138bafabce659967883250b202d23d697c00 (patch)
tree26309642696676bc237f13ff58394441fb8355fb /libjava/java
parent254986c7ff3175c29307b999f161cfcc7961baf4 (diff)
downloadgcc-56fa138bafabce659967883250b202d23d697c00.zip
gcc-56fa138bafabce659967883250b202d23d697c00.tar.gz
gcc-56fa138bafabce659967883250b202d23d697c00.tar.bz2
natNetworkInterfaceWin32.cc (getRealNetworkInterfaces): Changed pfn from static local to local.
* java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces): Changed pfn from static local to local. From-SVN: r87099
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/net/natNetworkInterfaceWin32.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/libjava/java/net/natNetworkInterfaceWin32.cc b/libjava/java/net/natNetworkInterfaceWin32.cc
index d4c2b17..429066e 100644
--- a/libjava/java/net/natNetworkInterfaceWin32.cc
+++ b/libjava/java/net/natNetworkInterfaceWin32.cc
@@ -116,7 +116,16 @@ determineGetRealNetworkInterfacesFN ()
::java::util::Vector*
java::net::NetworkInterface::getRealNetworkInterfaces ()
{
- static PfnGetRealNetworkInterfaces pfn =
+ // This next declaration used to be a static local,
+ // but this introduced a dependency on libsupc++ due
+ // to _cxa_guard_acquire and _cxa_guard_release.
+ // When Win95 is gone and we eventually get rid of
+ // winsock2GetRealNetworkInterfaces, we can rework
+ // all of this. Alternatively, we could move this all
+ // to win32.cc and initialize this at startup time,
+ // but that seems more trouble than it's worth at
+ // the moment.
+ PfnGetRealNetworkInterfaces pfn =
determineGetRealNetworkInterfacesFN ();
jstring arIFName[MAX_INTERFACES];