diff options
Diffstat (limited to 'apps/rehash.c')
-rw-r--r-- | apps/rehash.c | 20 |
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; |