Commit e5040378 authored by Richard Levitte's avatar Richard Levitte
Browse files

Fixes for VxWorks. Are these needed for 0.9.7 and up as well?

PR: 374
parent 0b749731
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -606,12 +606,14 @@ bad:
	       that to access().  However, time's too short to do that just
	       now.
            */
#ifndef VXWORKS
		if (access(outdir,R_OK|W_OK|X_OK) != 0)
			{
			BIO_printf(bio_err,"I am unable to access the %s directory\n",outdir);
			perror(outdir);
			goto err;
			}
#endif

		if (stat(outdir,&sb) != 0)
			{
+1 −1
Original line number Diff line number Diff line
@@ -1250,7 +1250,7 @@ static int www_body(char *hostname, int s, unsigned char *context)
			else
				{
				BIO_printf(bio_s_out,"read R BLOCK\n");
#ifndef MSDOS
#if !defined(MSDOS) && !defined(VXWORKS)
				sleep(1);
#endif
				continue;
+5 −0
Original line number Diff line number Diff line
@@ -116,6 +116,11 @@
#include <sys/param.h>
#endif

#ifdef VXWORKS
#include <tickLib.h>
#undef SIGALRM
#endif

/* The following if from times(3) man page.  It may need to be changed
*/
#ifndef HZ
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@
/* Query the EGD <URL: http://www.lothar.com/tech/crypto/>.
 */

#if defined(WIN32) || defined(MSDOS) || defined(VMS) || defined(__VMS)
#if defined(WIN32) || defined(MSDOS) || defined(VMS) || defined(__VMS) || defined(VXWORKS)
int RAND_egd(const char *path)
	{
	return(-1);
+2 −0
Original line number Diff line number Diff line
@@ -732,8 +732,10 @@ int RAND_poll(void)
	/* put in some default random data, we need more than just this */
	l=curr_pid;
	RAND_add(&l,sizeof(l),0);
#ifndef VXWORKS
	l=getuid();
	RAND_add(&l,sizeof(l),0);
#endif

	l=time(NULL);
	RAND_add(&l,sizeof(l),0);
Loading