[EMAIL PROTECTED] ("Luis Alberto Amigo Navarro") wrote in message 
news:<005901c1d17a$4d7b0e10$[EMAIL PROTECTED]>...
> >
> > cc-1070 cc: ERROR File = xact.c, Line = 587
> >   The indicated type is incomplete.
> >
> >                         struct timeval delay;
> 
> struct timeval must be defined on your "include path"/sys/time.h, what have
> you got?
> regards

Ok. timeval is defined in /sys/time.h.


#if _XOPEN4UX || defined(_BSD_TYPES) || defined(_BSD_COMPAT)
/*
 * Structure returned by gettimeofday(2) system call,
 * and used in other calls.
 * Note this is also defined in sys/resource.h
 */
#ifndef _TIMEVAL_T
#define _TIMEVAL_T
struct timeval {
#if _MIPS_SZLONG == 64
        __int32_t :32;
#endif
        time_t  tv_sec;         /* seconds */
        long    tv_usec;        /* and microseconds */
};


It looks like it won't be used unless XOPEN4UX, BSD_TYPES, or
BSD_COMPAT is defined.

Is there a way to force the build to define one of these flags. Which
one would be best, what's the syntax and what file should it be added
into in the Postgres source?

Thanks.
-Tony

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

Reply via email to