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

MacPorts noreply at macports.org
Fri Mar 23 10:02:08 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:                      |        Port:                                       
--------------------------------+-------------------------------------------
 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>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list