Re: Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f
От | reina@nsi.edu (Tony Reina) |
---|---|
Тема | Re: Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f |
Дата | |
Msg-id | f40d3195.0203221432.124ae6bd@posting.google.com обсуждение исходный текст |
Ответ на | Re: Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f ("Luis Alberto Amigo Navarro" <lamigo@atc.unican.es>) |
Список | pgsql-hackers |
lamigo@atc.unican.es ("Luis Alberto Amigo Navarro") wrote in message news:<005901c1d17a$4d7b0e10$cab990c1@atc.unican.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; #endiftime_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
В списке pgsql-hackers по дате отправления: