diff options
| author | Tom Lane | 2003-12-01 22:15:38 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-12-01 22:15:38 +0000 |
| commit | 5e2b99db95edea2a23ecdd62b3711a3feb3a28b9 (patch) | |
| tree | b2df40aa0867cbf2bc1fec6b70b400ab29bd6a5b /src/include | |
| parent | 35ddc2edeea919bad940b3e0ca8619688adba4b1 (diff) | |
Avoid assuming that type key_t is 32 bits, since it reportedly isn't
on 64-bit Solaris. Use a non-system-dependent datatype for UsedShmemSegID,
namely unsigned long (which we were already assuming could hold a shmem
key anyway, cf RecordSharedMemoryInLockFile).
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/pg_shmem.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/storage/pg_shmem.h b/src/include/storage/pg_shmem.h index 13702daec11..955d251c3cf 100644 --- a/src/include/storage/pg_shmem.h +++ b/src/include/storage/pg_shmem.h @@ -17,15 +17,13 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/pg_shmem.h,v 1.9 2003/11/29 22:41:13 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/storage/pg_shmem.h,v 1.10 2003/12/01 22:15:38 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef PG_SHMEM_H #define PG_SHMEM_H -typedef uint32 IpcMemoryKey; /* shared memory key passed to shmget(2) */ - typedef struct PGShmemHeader /* standard header for all Postgres shmem */ { int32 magic; /* magic # to identify Postgres segments */ @@ -37,7 +35,7 @@ typedef struct PGShmemHeader /* standard header for all Postgres shmem */ #ifdef EXEC_BACKEND -extern IpcMemoryKey UsedShmemSegID; +extern unsigned long UsedShmemSegID; extern void *UsedShmemSegAddr; #endif |
