src/w32.c (symlink, readlink): New stub functions.
nt/inc/unistd.h (readlink, symlink): Declare prototypes.
+2011-02-27 Eli Zaretskii <eliz@gnu.org>
+
+ * inc/unistd.h (readlink, symlink): Declare prototypes.
+
2011-02-26 Eli Zaretskii <eliz@gnu.org>
* config.nt (nlink_t): Define.
/* Fake unistd.h: config.h already provides most of the relevant things. */
+#ifndef _UNISTD_H
+#define _UNISTD_H
+
+extern ssize_t readlink (const char *, char *, size_t);
+extern int symlink (char const *, char const *);
+
+#endif /* _UNISTD_H */
+
+2011-02-27 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (symlink, readlink): New stub functions.
+
2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
* scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
return 0;
}
+\f
+/* Symlink-related functions that always fail. Used in fileio.c to
+ avoid #ifdef's. */
+int
+symlink (char const *dummy1, char const *dummy2)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
+ssize_t
+readlink (const char *name, char *dummy1, size_t dummy2)
+{
+ /* `access' is much faster than `stat' on MS-Windows. */
+ if (sys_access (name, 0) == 0)
+ errno = EINVAL;
+ return -1;
+}
+
\f
/* Support for browsing other processes and their attributes. See
process.c for the Lisp bindings. */