Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7a2a7d4

Browse files
committed
Wrap the function in and #ifdef, not the header files
Should fix an AIX compiler problem
1 parent 3f1b1db commit 7a2a7d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/storage/buffer/s_lock.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.1 1997/12/30 04:03:01 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.2 1998/01/07 17:02:52 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -18,7 +18,6 @@
1818
* to the assembly code involved.
1919
*/
2020

21-
#if defined(__alpha__) && defined(linux)
2221

2322
#include <sys/types.h>
2423
#include <sys/file.h>
@@ -38,6 +37,7 @@
3837
#include "storage/ipc.h"
3938
#include "storage/s_lock.h"
4039

40+
#if defined(__alpha__) && defined(linux)
4141
void S_LOCK(slock_t* lock)
4242
{
4343
do
@@ -61,5 +61,4 @@ void S_LOCK(slock_t* lock)
6161
} while (_res != 0);
6262
} while (0);
6363
}
64-
6564
#endif

0 commit comments

Comments
 (0)