Changed to work with vxWorks 5.1 and GCC 2.2.3.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user