diff options
| author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-07-31 22:49:12 +0000 |
|---|---|---|
| committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-07-31 22:49:12 +0000 |
| commit | 4c7c56fac6b76158e028994806ed47da180df024 (patch) | |
| tree | 4d2d2d67cee1cc9212cf02284efc5fc953c4eba3 | |
| parent | 89d60ee6f3e200b6052f668bbf036f90741189bf (diff) | |
| download | busybox-w32-4c7c56fac6b76158e028994806ed47da180df024.tar.gz busybox-w32-4c7c56fac6b76158e028994806ed47da180df024.tar.bz2 busybox-w32-4c7c56fac6b76158e028994806ed47da180df024.zip | |
patch by apgo in Bug 345 to not use ether_hostton() with uClibc
git-svn-id: svn://busybox.net/trunk/busybox@11002 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | networking/ether-wake.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index 83ceece80..9ea5c0366 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c | |||
| @@ -240,8 +240,12 @@ static inline void get_dest_addr(const char *hostid, struct ether_addr *eaddr) | |||
| 240 | if (eap) { | 240 | if (eap) { |
| 241 | *eaddr = *eap; | 241 | *eaddr = *eap; |
| 242 | bb_debug_msg("The target station address is %s\n\n", ether_ntoa(eaddr)); | 242 | bb_debug_msg("The target station address is %s\n\n", ether_ntoa(eaddr)); |
| 243 | #if !defined(__UCLIBC__) | ||
| 243 | } else if (ether_hostton(hostid, eaddr) == 0) { | 244 | } else if (ether_hostton(hostid, eaddr) == 0) { |
| 244 | bb_debug_msg("Station address for hostname %s is %s\n\n", hostid, ether_ntoa(eaddr)); | 245 | bb_debug_msg("Station address for hostname %s is %s\n\n", hostid, ether_ntoa(eaddr)); |
| 246 | #else | ||
| 247 | # warning Need to implement ether_hostton() for uClibc | ||
| 248 | #endif | ||
| 245 | } else | 249 | } else |
| 246 | bb_show_usage(); | 250 | bb_show_usage(); |
| 247 | } | 251 | } |
