diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-12-03 12:44:43 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-12-03 12:44:43 -0500 |
commit | 32a7deb2a02bc3c81d61eeb943b03ed2010eaac9 (patch) | |
tree | 663f6fef43bf49bc03084e576f0b355cef25540f /configure | |
parent | 3c5f9f12c807760f6d512957a863113b07a79dcb (diff) | |
download | postgresql-32a7deb2a02bc3c81d61eeb943b03ed2010eaac9.tar.gz postgresql-32a7deb2a02bc3c81d61eeb943b03ed2010eaac9.zip |
Define _POSIX_C_SOURCE as 200112L on Solaris.
This is an attempt to suppress some compiler warnings that appeared in
the wake of commit 7f798aca1: it seems that by default Solaris/illumos
declares shmdt() to take "char *" not "void *". We'd like the system
headers to provide modern POSIX APIs, and POSIX 2001 seems to be as
modern as is available there.
illumos' standards(7) man page suggests that we might also need to
define __EXTENSIONS__, but let's see what happens with just this.
Discussion: https://postgr.es/m/1654508.1733162761@sss.pgh.pa.us
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure index ff59f1422d8..7029e036269 100755 --- a/configure +++ b/configure @@ -7590,10 +7590,10 @@ $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h fi fi -# On Solaris, we need this #define to get POSIX-conforming versions -# of many interfaces (sigwait, getpwuid_r, ...). +# On Solaris, we need these #defines to get POSIX-conforming versions +# of many interfaces (sigwait, getpwuid_r, shmdt, ...). if test "$PORTNAME" = "solaris"; then - CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" + CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L -D_POSIX_PTHREAD_SEMANTICS" fi # We already have this in Makefile.win32, but configure needs it too |