Skip to content

Commit 42f167f

Browse files
committed
Fix func_ptr declaration for netbsd-mac68k, per Rémi Zara.
1 parent cdd402f commit 42f167f

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/backend/utils/fmgr/fmgr.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/fmgr/fmgr.c,v 1.86 2004/10/25 00:46:42 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/fmgr/fmgr.c,v 1.87 2004/12/26 23:20:10 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -40,11 +40,10 @@
4040
* *additionally* into %d0 for compatibility.) The price is that there are
4141
* some warnings about int->pointer conversions...
4242
*/
43-
#if defined(__mc68000__) && defined(__ELF__)
44-
typedef int32 ((*func_ptr) ());
45-
43+
#if (defined(__mc68000__) || (defined(__m68k__))) && defined(__ELF__)
44+
typedef int32 (*func_ptr) ();
4645
#else
47-
typedef char *((*func_ptr) ());
46+
typedef char * (*func_ptr) ();
4847
#endif
4948

5049
/*

src/backend/utils/init/miscinit.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.135 2004/10/09 23:13:06 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.136 2004/12/26 23:20:12 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -915,12 +915,7 @@ ValidatePgVersion(const char *path)
915915
*-------------------------------------------------------------------------
916916
*/
917917

918-
#if defined(__mc68000__) && defined(__ELF__)
919-
typedef int32 ((*func_ptr) ());
920-
921-
#else
922-
typedef char *((*func_ptr) ());
923-
#endif
918+
typedef void (*func_ptr) ();
924919

925920
/*
926921
* process any libraries that should be preloaded and

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy