Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfeb5a2c

Browse files
committed
Fix for various aix related 'mis-defines'
From: Darren King <darrenk@insightdist.com>
1 parentea514d2 commitfeb5a2c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

‎src/include/storage/s_lock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.21 1998/01/26 01:01:37 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.22 1998/02/03 02:08:58 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -141,7 +141,7 @@ static inttas(slock_t *lock);
141141
* (see storage/ipc.h).
142142
*/
143143

144-
#if defined(aix)
144+
#if defined(__AIX)
145145

146146
#defineS_LOCK(lock)do \
147147
{ \
@@ -153,7 +153,7 @@ static inttas(slock_t *lock);
153153

154154
#defineS_INIT_LOCK(lock)S_UNLOCK(lock)
155155

156-
#endif/*aix */
156+
#endif/*__AIX */
157157

158158
/*
159159
* HP-UX (PA-RISC)

‎src/include/utils/dt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: dt.h,v 1.25 1998/01/24 22:50:39 momjian Exp $
11+
* $Id: dt.h,v 1.26 1998/02/03 02:09:02 scrappy Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -187,11 +187,11 @@ typedef struct
187187
/* keep this struct small; it gets used a lot */
188188
typedefstruct
189189
{
190-
#if defined(aix)
190+
#if defined(__AIX)
191191
char*token;
192192
#else
193193
chartoken[TOKMAXLEN];
194-
#endif/*aix */
194+
#endif/*__AIX */
195195
chartype;
196196
charvalue;/* this may be unsigned, alas */
197197
}datetkn;

‎src/include/utils/nabstime.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: nabstime.h,v 1.13 1997/09/08 21:55:13 momjian Exp $
9+
* $Id: nabstime.h,v 1.14 1998/02/03 02:09:08 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -53,7 +53,7 @@ typedef TimeIntervalData *TimeInterval;
5353
#defineBIG_ABSTIME((AbsoluteTime) 0x7FFFFFFB)/* 2147483644 == 2^31 -
5454
* 4 */
5555

56-
#if defined(aix)
56+
#if defined(__AIX)
5757
/*
5858
* AIX considers 2147483648 == -2147483648 (since they have the same bit
5959
* representation) but uses a different sign sense in a comparison to
@@ -63,7 +63,7 @@ typedef TimeIntervalData *TimeInterval;
6363
#defineNOSTART_ABSTIME ((AbsoluteTime) INT_MIN)
6464
#else
6565
#defineNOSTART_ABSTIME ((AbsoluteTime) 0x80000001)/* -2147483647 == - 2^31 */
66-
#endif/*aix */
66+
#endif/*__AIX */
6767

6868
#defineINVALID_RELTIME ((RelativeTime) 0x7FFFFFFE)/* 2147483647 == 2^31 -
6969
* 1 */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp