瀏覽代碼

Fix spurious testsuite failure

Denis Vlasenko 17 年之前
父節點
當前提交
78bb0c1f0b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      test/inet/tst-ethers-line.c

+ 5 - 0
test/inet/tst-ethers-line.c

@@ -6,6 +6,11 @@
 #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
 
 int main(void)