mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix func_ptr declaration for netbsd-mac68k, per Rémi Zara.
This commit is contained in:
parent
cdd402f8b3
commit
42f167f8b1
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/fmgr/fmgr.c,v 1.86 2004/10/25 00:46:42 neilc Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/fmgr/fmgr.c,v 1.87 2004/12/26 23:20:10 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -40,11 +40,10 @@
|
|||||||
* *additionally* into %d0 for compatibility.) The price is that there are
|
* *additionally* into %d0 for compatibility.) The price is that there are
|
||||||
* some warnings about int->pointer conversions...
|
* some warnings about int->pointer conversions...
|
||||||
*/
|
*/
|
||||||
#if defined(__mc68000__) && defined(__ELF__)
|
#if (defined(__mc68000__) || (defined(__m68k__))) && defined(__ELF__)
|
||||||
typedef int32 ((*func_ptr) ());
|
typedef int32 (*func_ptr) ();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
typedef char *((*func_ptr) ());
|
typedef char * (*func_ptr) ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.135 2004/10/09 23:13:06 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.136 2004/12/26 23:20:12 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -915,12 +915,7 @@ ValidatePgVersion(const char *path)
|
|||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__mc68000__) && defined(__ELF__)
|
typedef void (*func_ptr) ();
|
||||||
typedef int32 ((*func_ptr) ());
|
|
||||||
|
|
||||||
#else
|
|
||||||
typedef char *((*func_ptr) ());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* process any libraries that should be preloaded and
|
* process any libraries that should be preloaded and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user