* java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
authormembar <membar@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 2004 03:36:19 +0000 (03:36 +0000)
committermembar <membar@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 2004 03:36:19 +0000 (03:36 +0000)
Changed pfn from static local to local.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87099 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/net/natNetworkInterfaceWin32.cc

index 94ed50d..ece60aa 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-04  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
+       Changed pfn from static local to local.
+
 2004-09-03  Bryce McKinlay  <mckinlay@redhat.com>
             H.J. Lu  <hongjiu.lu@intel.com>
 
index d4c2b17..429066e 100644 (file)
@@ -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];