diff options
Diffstat (limited to 'test/inet/tst-ethers-line.c')
| -rw-r--r-- | test/inet/tst-ethers-line.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/inet/tst-ethers-line.c b/test/inet/tst-ethers-line.c index d4835b546..3b3387455 100644 --- a/test/inet/tst-ethers-line.c +++ b/test/inet/tst-ethers-line.c @@ -6,8 +6,17 @@ #include <fcntl.h> #include <stdlib.h> +/* glibc 2.4 has no ETHER_FILE_NAME, host compile fails without this */ +#ifndef ETHER_FILE_NAME +#define ETHER_FILE_NAME "/etc/ethers" +#endif + #define ETHER_LINE_LEN 256 +/* This test requires /etc/ethers to exist + * and to have nonzero length + */ + int main(void) { struct ether_addr addr; |
