diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-01-07 17:02:52 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-01-07 17:02:52 +0000 |
commit | 7a2a7d436dac73e2b983224458887749078e9796 (patch) | |
tree | 346a45afbd4ef7866f715f7dfca74e28515a49f6 /src | |
parent | 3f1b1db7c590b721f148e333b647cbb6953d1867 (diff) | |
download | postgresql-7a2a7d436dac73e2b983224458887749078e9796.tar.gz postgresql-7a2a7d436dac73e2b983224458887749078e9796.zip |
Wrap the function in and #ifdef, not the header files
Should fix an AIX compiler problem
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/buffer/s_lock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/storage/buffer/s_lock.c b/src/backend/storage/buffer/s_lock.c index 6a612a16828..493139ed5dc 100644 --- a/src/backend/storage/buffer/s_lock.c +++ b/src/backend/storage/buffer/s_lock.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.1 1997/12/30 04:03:01 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.2 1998/01/07 17:02:52 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -18,7 +18,6 @@ * to the assembly code involved. */ -#if defined(__alpha__) && defined(linux) #include <sys/types.h> #include <sys/file.h> @@ -38,6 +37,7 @@ #include "storage/ipc.h" #include "storage/s_lock.h" +#if defined(__alpha__) && defined(linux) void S_LOCK(slock_t* lock) { do @@ -61,5 +61,4 @@ void S_LOCK(slock_t* lock) } while (_res != 0); } while (0); } - #endif |