Wrap the function in and #ifdef, not the header files

Should fix an AIX compiler problem
This commit is contained in:
Marc G. Fournier 1998-01-07 17:02:52 +00:00
parent 3f1b1db7c5
commit 7a2a7d436d
1 changed files with 2 additions and 3 deletions

View File

@ -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