Opened 13 years ago

Closed 12 years ago

#33739 closed defect (fixed)

Postgresql91 - wrong SIZEOF_LONG in ${prefix}/include/postgresql91/server/pg_config.h with +universal

Reported by: Veence (Vincent) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: pg_config.h universal Cc: mww@…, jyrkiwahlstedt
Port: postgresql91

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The pg_config.h file as written by the postgresql91 port has this line :

/* The size of `long', as computed by sizeof. */
#define SIZEOF_LONG 8

/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 8

/* The size of `size_t', as computed by sizeof. */
#ifdef __LP64__
#define SIZEOF_SIZE_T 8
#else
#define SIZEOF_SIZE_T 4
#endif

SIZEOF_LONG and maybe SIZEOF_OFF_T should also be enclosed in #ifdef __LP64__ … #endif clauses.

Change History (3)

comment:1 Changed 13 years ago by Veence (Vincent)

Cc: mww@… jwa@… added
Keywords: pg_config.h universal added
Port: postgresql91 added

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.