Re: Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f

From: reina(at)nsi(dot)edu (Tony Reina)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f
Date: 2002-03-22 22:32:42
Message-ID: f40d3195.0203221432.124ae6bd@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

lamigo(at)atc(dot)unican(dot)es ("Luis Alberto Amigo Navarro") wrote in message news:<005901c1d17a$4d7b0e10$cab990c1(at)atc(dot)unican(dot)es>...
> >
> > 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-03-22 23:34:59 Having pg_shadow cache use pg_hba.conf cache code
Previous Message Bruce Momjian 2002-03-22 21:24:49 Re: SET NULL / SET NOT NULL