]> granicus.if.org Git - postgresql/commitdiff
Wrap the function in and #ifdef, not the header files
authorMarc G. Fournier <scrappy@hub.org>
Wed, 7 Jan 1998 17:02:52 +0000 (17:02 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 7 Jan 1998 17:02:52 +0000 (17:02 +0000)
Should fix an AIX compiler problem

src/backend/storage/buffer/s_lock.c

index 6a612a168285413e464a4b3e1cdd6c9ffd37e77d..493139ed5dcc903848aa9032b32f9f0b8731d2de 100644 (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