Skip to content

Commit 31cae34

Browse files
committed
multiple define of 'union semun' removed
submitted by: dr. george
1 parent fd35587 commit 31cae34

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

src/backend/storage/ipc/ipc.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.2 1996/07/20 08:35:52 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.3 1996/07/25 19:45:24 scrappy Exp $
1111
*
1212
* NOTES
1313
*
@@ -47,16 +47,6 @@ int UsePrivateMemory = 1;
4747
int UsePrivateMemory = 0;
4848
#endif
4949

50-
#if defined(PORTNAME_bsdi)||defined(PORTNAME_i386_solaris)
51-
/* hacka, hacka, hacka (XXX) */
52-
union semun {
53-
int val; /* value for SETVAL */
54-
struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
55-
ushort *array; /* array for GETALL & SETALL */
56-
};
57-
#endif
58-
59-
6050
/* ----------------------------------------------------------------
6151
* exit() handling stuff
6252
* ----------------------------------------------------------------

src/backend/storage/lmgr/proc.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.2 1996/07/20 08:35:58 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3 1996/07/25 19:45:31 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,7 +46,7 @@
4646
* This is so that we can support more backends. (system-wide semaphore
4747
* sets run out pretty fast.) -ay 4/95
4848
*
49-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.2 1996/07/20 08:35:58 scrappy Exp $
49+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3 1996/07/25 19:45:31 scrappy Exp $
5050
*/
5151
#include <sys/time.h>
5252
#ifndef WIN32
@@ -56,15 +56,6 @@
5656
#include <sys/types.h>
5757
#include "libpq/pqsignal.h" /* substitute for <signal.h> */
5858

59-
#if defined(PORTNAME_bsdi)||defined(PORTNAME_i386_solaris)
60-
/* hacka, hacka, hacka (XXX) */
61-
union semun {
62-
int val; /* value for SETVAL */
63-
struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
64-
ushort *array; /* array for GETALL & SETALL */
65-
};
66-
#endif
67-
6859
#include "access/xact.h"
6960
#include "utils/hsearch.h"
7061
#include "utils/elog.h"

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