Re: Remove useless casts to (void *)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Thomas Munro <thomas.munro@gmail.com>,
Peter Eisentraut <peter@eisentraut.org>,
Andreas Karlsson <andreas@proxel.se>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-12-02T22:42:33Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2024-12-02 17:11:30 -0500, Tom Lane wrote: >> I'm inclined to propose adding something like >> CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" >> to src/template/solaris. Not sure if we have a corresponding >> mechanism for meson, though. > elif host_system == 'sunos' > portname = 'solaris' > export_fmt = '-Wl,-M@0@' > cppflags += '-D_POSIX_PTHREAD_SEMANTICS' > Should be trivial to add there. Oh! The corresponding bit in configure.ac is # On Solaris, we need this #define to get POSIX-conforming versions # of many interfaces (sigwait, getpwuid_r, ...). if test "$PORTNAME" = "solaris"; then CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" fi Barely even need to adjust the comment ;-). I'll proceed with improving that (in master only, don't think we need it in back branches, at least not today) unless somebody pushes back soon. regards, tom lane
Commits
-
Remove PointerIsValid()
- a5b35fcedb54 19 (unreleased) landed
-
Define __EXTENSIONS__ on Solaris, too.
- 3b08d5224d7d 18.0 landed
-
Define _POSIX_C_SOURCE as 200112L on Solaris.
- 32a7deb2a02b 18.0 landed
-
Remove useless casts to (void *)
- 7f798aca1d5d 18.0 landed