summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2007-03-21 14:39:23 +0000
committerMagnus Hagander <magnus@hagander.net>2007-03-21 14:39:23 +0000
commit18d82d03b51f1d34e8b076e89e54a4c8e0818343 (patch)
tree011b9c702b791ad10ddb474e4cb12956d01d2710 /configure.in
parent3b765dba780ccb08f4ff7a693d57c19737a4d51c (diff)
Native shared memory implementation for win32.
Uses same underlying tech as before, but not the sysv emulation layer.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index e5d72eb1d30..273f79bf5f5 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.502 2007/02/21 15:12:39 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.503 2007/03/21 14:39:23 mha Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -1367,9 +1367,13 @@ fi
# Select shared-memory implementation type.
-AC_DEFINE(USE_SYSV_SHARED_MEMORY, 1, [Define to select SysV-style shared memory.])
-SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
-
+if test "$PORTNAME" != "win32"; then
+ AC_DEFINE(USE_SYSV_SHARED_MEMORY, 1, [Define to select SysV-style shared memory.])
+ SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
+else
+ AC_DEFINE(USE_WIN32_SHARED_MEMORY, 1, [Define to select Win32-style shared memory.])
+ SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
+fi
# If not set in template file, set bytes to use libc memset()
if test x"$MEMSET_LOOP_LIMIT" = x"" ; then