Browse files

On OS X (Carbon), network-interfaces-list returns nil.

Going to assume you're online on unsupported platforms.
  • Loading branch information...
1 parent acfeee4 commit 5c776d29c89846551d1b73230f2fb88c8d1fe628 @technomancy committed Dec 28, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 starter-kit-elpa.el
3 starter-kit-elpa.el
@@ -47,7 +47,8 @@
Windows does not have the network-interface-list function, so we
just have to assume it's online."
- (if (functionp 'network-interface-list)
+ (if (and (functionp 'network-interface-list)
+ (network-interface-list))
(some (lambda (iface) (unless (equal "lo" (car iface))
(member 'up (first (last (network-interface-info
(car iface)))))))

0 comments on commit 5c776d2

Please sign in to comment.