]> Pileus Git - ~andy/fetchmail/commitdiff
Fix build problem (missing interface_init()) on FreeBSD.
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 17 Sep 2005 13:30:13 +0000 (13:30 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 17 Sep 2005 13:30:13 +0000 (13:30 -0000)
svn path=/trunk/; revision=4291

interface.c

index d4688094fef369ec0f2d0b1f26b03b1eb1419d17..f01fb1ba74e43e495fa11cd41554e623a127aad9 100644 (file)
@@ -74,6 +74,7 @@ static char *netdevfmt;
 #define MONITOR_SLOP           5
 
 #ifdef linux
+#define have_interface_init
 
 void interface_init(void)
 /* figure out which /proc/net/dev format to use */
@@ -544,10 +545,10 @@ get_ifinfo_end:
 
 #endif /* __FREEBSD_USE_SYSCTL_GET_IFFINFO */
 
-#else
+#endif
 
+#ifndef have_interface_init
 void interface_init(void) {};
-
 #endif