Re: PG 17.2 compilation fails with -std=c11 on mac

2025-05-18 Thread Tom Lane
I wrote: > Here's a lightly-tested fix for that (against HEAD, but it likely > works on v17 too). Pushed that. It did require adjustments for the back branches. For the archives' sake: I checked which buildfarm animals report having memset_s(). They are anaconda | 2025-05-18 08:22:35 | c

Re: PG 17.2 compilation fails with -std=c11 on mac

2025-05-16 Thread Tom Lane
I wrote: > We lack that #define, which results in not supplying > the declaration. AFAICT the requirement for this is in the C11 > standard, this is not just Apple doing something weird. > Aside from this compilation error, we're probably failing to use > memset_s on some platforms where it's ava

Re: PG 17.2 compilation fails with -std=c11 on mac

2025-05-16 Thread Tom Lane
Lakshmi Narayana Velayudam writes: > When I trying to compiling postgres 17.2 with -std=c11 I am getting the > below error on mac > explicit_bzero.c:22:9: error: call to undeclared function 'memset_s'; ISO > C99 and later do not support implicit function declarations > [-Wimplicit-function-declar

PG 17.2 compilation fails with -std=c11 on mac

2025-05-16 Thread Lakshmi Narayana Velayudam
Hello, When I trying to compiling postgres 17.2 with -std=c11 I am getting the below error on mac explicit_bzero.c:22:9: error: call to undeclared function 'memset_s'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 22 | (void) memset_