Skip to content

Commit fada8ee

Browse files
committed
NetBSD/Alpha porting fixes from tom@minnesota.com.
1 parent 4723b2b commit fada8ee

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/backend/main/main.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.35 2000/11/25 03:45:47 tgl Exp $
16+
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.36 2000/12/31 03:34:01 tgl Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -25,13 +25,16 @@
2525
#include <locale.h>
2626
#endif
2727

28-
#if defined(__alpha) && !defined(linux) && !defined(__FreeBSD__)
28+
#if defined(__alpha) && !defined(linux) && !defined(__FreeBSD__) && !defined(__NetBSD__)
2929
#include <sys/sysinfo.h>
3030
#include "machine/hal_sysinfo.h"
3131
#define ASSEMBLER
3232
#include <sys/proc.h>
3333
#undef ASSEMBLER
3434
#endif
35+
#if defined(__NetBSD__)
36+
#include <sys/param.h>
37+
#endif
3538

3639
#include "miscadmin.h"
3740
#include "bootstrap/bootstrap.h"

src/include/port/netbsd.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
11
#if defined(__i386__)
22
#define NEED_I386_TAS_ASM
33
#define HAS_TEST_AND_SET
4+
typedef unsigned char slock_t;
45
#endif
56

67
#if defined(__sparc__)
78
#define NEED_SPARC_TAS_ASM
89
#define HAS_TEST_AND_SET
10+
typedef unsigned char slock_t;
911
#endif
1012

1113
#if defined(__vax__)
1214
#define NEED_VAX_TAS_ASM
1315
#define HAS_TEST_AND_SET
16+
typedef unsigned char slock_t;
1417
#endif
1518

1619
#if defined(__ns32k__)
1720
#define NEED_NS32K_TAS_ASM
1821
#define HAS_TEST_AND_SET
22+
typedef unsigned char slock_t;
1923
#endif
2024

2125
#if defined(__m68k__)
2226
#define HAS_TEST_AND_SET
27+
typedef unsigned char slock_t;
2328
#endif
2429

2530
#if defined(__arm__)
2631
#define HAS_TEST_AND_SET
32+
typedef unsigned char slock_t;
2733
#endif
2834

2935
#if defined(__mips__)
3036
/* # undef HAS_TEST_AND_SET */
3137
#endif
3238

33-
#if defined(__powerpc__)
39+
#if defined(__alpha__)
3440
#define HAS_TEST_AND_SET
41+
typedef unsigned long slock_t;
3542
#endif
3643

3744
#if defined(__powerpc__)
45+
#define HAS_TEST_AND_SET
3846
typedef unsigned int slock_t;
39-
40-
#else
41-
typedef unsigned char slock_t;
42-
4347
#endif

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