[link-detect] Improve BSD support.
2008-01-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* lib/zebra.h: Revert previous change, no need to include
<net/if_media.h> here.
* zebra/ioctl.c: If HAVE_BSD_LINK_DETECT is defined, include
<net/if_media.h>
(if_get_flags) Remove debug messages about BSD link state.
* zebra/kernel_socket.c: (bsd_linkdetect_translate) If link state
is unknown, we should set the IFF_RUNNING flag.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 21d08dd..2263c03 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * zebra.h: Revert previous change, no need to include <net/if_media.h>
+ here.
+
2008-01-10 Ingo Flaschberger <if@xip.at>
* zebra.h: If HAVE_BSD_LINK_DETECT is defined, include <net/if_media.h>.
diff --git a/lib/zebra.h b/lib/zebra.h
index 1c9eb39..150aa2c 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -116,9 +116,6 @@
#endif /* !va_copy */
#endif /* !C99 */
-#ifdef HAVE_BSD_LINK_DETECT
-#include <net/if_media.h>
-#endif /* HAVE_BSD_LINK_DETECT*/
#ifdef HAVE_LCAPS
#include <sys/capability.h>