+2009-01-20 Bruno Haible <bruno@clisp.org>
+
+ Fix compilation failure on mingw.
+ * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
+
2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
* doc/c-strtod.texi: Mention a couple of restrictions.
{
/* If the device does not support hard links, errno is
EPERM on Linux, EOPNOTSUPP on FreeBSD. */
- if (errno == EPERM || errno == EOPNOTSUPP)
- return 77;
- perror ("link");
- return 1;
+ switch (errno)
+ {
+ case EPERM:
+#ifdef EOPNOTSUPP
+ case EOPNOTSUPP:
+#endif
+ return 77;
+ default:
+ perror ("link");
+ return 1;
+ }
}
return 0;