[MacPorts] #33739: Postgresql91 - wrong SIZEOF_LONG in ${prefix}/include/postgresql91/server/pg_config.h with +universal

MacPorts noreply at macports.org
Fri Mar 23 11:41:39 PDT 2012


#33739: Postgresql91 - wrong SIZEOF_LONG in
${prefix}/include/postgresql91/server/pg_config.h with +universal
-----------------------------------+----------------------------------------
 Reporter:  vince@…                |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  ports                  |     Version:  2.0.4                                
 Keywords:  pg_config.h universal  |        Port:  postgresql91                         
-----------------------------------+----------------------------------------
Description changed by ryandesign@…:

Old 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.

New 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.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/33739#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list