Cleanup vxworks support to be able to compile for VxWorks 7
[openssl.git] / apps / rehash.c
index 6a641a8542bad4ff13cdff90a087cbf2250460df..a1fc37902e3ce78ddcf3e0d78f74fafc630c3bfd 100644 (file)
 # endif
 # define MAX_COLLISIONS  256
 
+# if defined(OPENSSL_SYS_VXWORKS)
+/*
+ * VxWorks has no symbolic links
+ */
+
+#  define lstat(path, buf) stat(path, buf)
+
+int symlink(const char *target, const char *linkpath)
+{
+    errno = ENOSYS;
+    return -1;
+}
+
+ssize_t readlink(const char *pathname, char *buf, size_t bufsiz)
+{
+    errno = ENOSYS;
+    return -1;
+}
+# endif
+
 typedef struct hentry_st {
     struct hentry_st *next;
     char *filename;