harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r481541 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/linux/hysock.c
Date Sat, 02 Dec 2006 10:16:31 GMT
Author: hindessm
Date: Sat Dec  2 02:16:30 2006
New Revision: 481541

URL: http://svn.apache.org/viewvc?view=rev&rev=481541
Log:
Added missing ifdef to allow code to compile if HAS_RTNETLINK is not defined.

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/linux/hysock.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/linux/hysock.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/linux/hysock.c?view=diff&rev=481541&r1=481540&r2=481541
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/linux/hysock.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/linux/hysock.c Sat
Dec  2 02:16:30 2006
@@ -3831,6 +3831,7 @@
 
 #define CDEV_CURRENT_FUNCTION hysock_cleanupNetlinkContext
 
+#if (defined(HAS_RTNETLINK))
 /**
  *   Convenience function to release any allocated memory for a netlinkContext
  * 
@@ -3849,7 +3850,7 @@
     
     return;
 }
-
+#endif
 #undef CDEV_CURRENT_FUNCTION
 
 #define CDEV_CURRENT_FUNCTION hysock_get_network_interfaces



Mime
View raw message