summaryrefslogtreecommitdiffstats
path: root/apps/rehash.c
diff options
context:
space:
mode:
authorKlotz, Tobias <tobias.klotz@draeger.com>2018-12-20 12:59:31 +0100
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-01-24 17:55:04 +0100
commit5c8b7b4caa0faedb69277063a7c6b3a8e56c6308 (patch)
treec517ee78963ae830a90f376442578fd88e63faea /apps/rehash.c
parent0b53fe1cdc24a3dce450e77db6895a0243ddcb26 (diff)
Cleanup vxworks support to be able to compile for VxWorks 7
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/7569)
Diffstat (limited to 'apps/rehash.c')
-rw-r--r--apps/rehash.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/rehash.c b/apps/rehash.c
index 6a641a8542..a1fc37902e 100644
--- a/apps/rehash.c
+++ b/apps/rehash.c
@@ -51,6 +51,26 @@
# 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;