src/msdos.c (readlink) [DJGPP < 2.04]: New stub function.
src/msdos.h: (readlink) [DJGPP < 2.04]: Declare prototype.
+2011-02-27 Eli Zaretskii <eliz@gnu.org>
+
+ * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
+
+ * msdos.h: (readlink) [DJGPP < 2.04]: Declare prototype.
+
2011-02-26 Eli Zaretskii <eliz@gnu.org>
* s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
*/
int setpgrp (void) {return 0; }
int setpriority (int x, int y, int z) { return 0; }
+
+#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 4
+ssize_t
+readlink (const char *name, char *dummy1, size_t dummy2)
+{
+ /* `access' is much faster than `stat' on MS-DOS. */
+ if (access (name, F_OK) == 0)
+ errno = EINVAL;
+ return -1;
+}
+#endif
+
\f
#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 2
void mouse_on (void);
void mouse_off (void);
void mouse_moveto (int, int);
+
+#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 4
+int readlink (const char *, char *, size_t);
+#endif
+
\f
#ifndef HAVE_X_WINDOWS
/* Dummy types. */