Commit 42f167f8 authored by Tom Lane's avatar Tom Lane

Fix func_ptr declaration for netbsd-mac68k, per Rémi Zara.

parent cdd402f8
...@@ -8,7 +8,7 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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) ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment