Changed to work with vxWorks 5.1 and GCC 2.2.3.

This commit is contained in:
Janet B. Anderson
1993-06-03 17:29:24 +00:00
parent 2051766f46
commit 3e10a0da55
4 changed files with 9 additions and 3 deletions

View File

@@ -177,7 +177,9 @@ char *message; /* O message from server (dimension of 80 assumed) */
{
struct sockaddr_in server;
struct hostent *hp;
#ifndef vxWorks
struct hostent *gethostbyname();
#endif
int i;
assert(pServerSock != NULL);

View File

@@ -328,6 +328,7 @@ void (* handler)(); /* I pointer to signal handler */
}
#ifdef vxWorks
#ifndef V5_vxWorks
/*+/subr**********************************************************************
* NAME perror - print message corresponding to errno
*
@@ -345,6 +346,7 @@ char *str; /* I string to print in conjunction with error message */
printErrno(0);
}
#endif
#endif
int doMatch();

View File

@@ -98,6 +98,7 @@
*----------------------------------------------------------------------------*/
#ifdef vxWorks
#ifndef V5_vxWorks
FUNCPTR signal(sig, func)
int sig;
FUNCPTR func;
@@ -111,6 +112,7 @@
return ovec.sv_handler;
}
#endif
#endif
/*----------------------------------------------------------------------------
* taskSpawn()

View File

@@ -126,8 +126,9 @@
#define TS_PRIVATE_DATA
#include <tsDefs.h>
void tsStampFromLocal();
void tsStampToLocal();
static void tsStampFromLocal();
static void tsStampToLocal();
static void tsStampToLocalZone();
static int needToInitMinWest=1;
static long tsMinWest=TS_MIN_WEST;
@@ -710,7 +711,6 @@ unsigned long interval; /* I rounding interval, in seconds */
return retStat;
}
void tsStampToLocalZone();
/*+/internal******************************************************************
* NAME tsStampFromLocal - convert time stamp to local time
*