]> Pileus Git - ~andy/fetchmail/commitdiff
Better portability.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 7 Feb 1999 18:48:00 +0000 (18:48 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 7 Feb 1999 18:48:00 +0000 (18:48 -0000)
svn path=/trunk/; revision=2380

interface.c

index 75d975f994afdfccb813fb1fff5c3bc1869103cb..e7175cbf8d8e1707efebd4862e80b57cd6ca5b2d 100644 (file)
@@ -56,6 +56,8 @@ struct interface_pair_s {
 
 static char *netdevfmt;
 
+#if defined(linux)
+
 void interface_init(void)
 /* figure out which /roc/dev/net format to use */
 {
@@ -79,9 +81,6 @@ void interface_init(void)
     }
 }
 
-
-#if defined(linux)
-
 static int _get_ifinfo_(int socket_fd, FILE *stats_file, const char *ifname,
                ifinfo_t *ifinfo)
 /* get active network interface information - return non-zero upon success */