~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-updates

« back to all changes in this revision

Viewing changes to src/template/darwin

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $PostgreSQL$
 
2
 
 
3
# Apple's cpp-precomp seems a tad broken, so don't use it
 
4
# (Note: on OS X before 10.2, you might need -traditional-cpp instead)
 
5
CC="$CC -no-cpp-precomp"
 
6
 
 
7
# Select appropriate semaphore support.  Darwin 6.0 (Mac OS X 10.2) and up
 
8
# support System V semaphores; before that we have to use POSIX semaphores,
 
9
# which are less good for our purposes because they eat a file descriptor
 
10
# per backend per max_connection slot.
 
11
case $host_os in
 
12
  darwin[015].*)
 
13
    USE_NAMED_POSIX_SEMAPHORES=1
 
14
    ;;
 
15
  *)
 
16
    USE_SYSV_SEMAPHORES=1
 
17
    ;;
 
18
esac