Fix func_ptr declaration for netbsd-mac68k, per Rémi Zara.
authorTom Lane <[email protected]>
Sun, 26 Dec 2004 23:20:12 +0000 (23:20 +0000)
committerTom Lane <[email protected]>
Sun, 26 Dec 2004 23:20:12 +0000 (23:20 +0000)
src/backend/utils/fmgr/fmgr.c
src/backend/utils/init/miscinit.c

index e890260d6915a80b27cd5d1b4ec0e3204ad5018c..c7a4de92ccd1c9dcd92dd6ca97b166a9667b2a82 100644 (file)
  * *additionally* into %d0 for compatibility.) The price is that there are
  * some warnings about int->pointer conversions...
  */
-#if defined(__mc68000__) && defined(__ELF__)
-typedef int32 ((*func_ptr) ());
-
+#if (defined(__mc68000__) || (defined(__m68k__))) && defined(__ELF__)
+typedef int32  (*func_ptr) ();
 #else
-typedef char *((*func_ptr) ());
+typedef char * (*func_ptr) ();
 #endif
 
 /*
index 2918bee91da3af70cc62f8a804bf7f524e37123a..01bad208ff46299d7b0074f975db42d012909532 100644 (file)
@@ -915,12 +915,7 @@ ValidatePgVersion(const char *path)
  *-------------------------------------------------------------------------
  */
 
-#if defined(__mc68000__) && defined(__ELF__)
-typedef int32 ((*func_ptr) ());
-
-#else
-typedef char *((*func_ptr) ());
-#endif
+typedef void (*func_ptr) ();
 
 /*
  * process any libraries that should be preloaded and