doc: Fix section of functions age(xid) and mxid_age(xid)
[pgsql.git] / src / template / darwin
blobe8eb93906878032bb127f02c96c21536dde3ac54
1 # src/template/darwin
3 # Note: Darwin is the original code name for macOS, also known as OS X.
4 # We still use "darwin" as the port name, partly because config.guess does.
6 # Select where system include files should be sought
7 PG_SYSROOT=`${srcdir}/src/tools/darwin_sysroot $PG_SYSROOT`
9 if test -d "$PG_SYSROOT" ; then
10   CPPFLAGS="-isysroot $PG_SYSROOT $CPPFLAGS"
11   LDFLAGS="-isysroot $PG_SYSROOT $LDFLAGS"
14 # Extra CFLAGS for code that will go into a shared library
15 CFLAGS_SL=""
17 # Select appropriate semaphore support.  Darwin 6.0 (macOS 10.2) and up
18 # support System V semaphores; before that we have to use named POSIX
19 # semaphores, which are less good for our purposes because they eat a
20 # file descriptor per backend per max_connection slot.
21 case $host_os in
22   darwin[015].*)
23     USE_NAMED_POSIX_SEMAPHORES=1
24     ;;
25   *)
26     USE_SYSV_SEMAPHORES=1
27     ;;
28 esac
30 DLSUFFIX=".dylib"