Opened 12 years ago

Last modified 12 years ago

#33739 closed defect

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

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

Description

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 (0)

Note: See TracTickets for help on using tickets.