Compilation issue on Solaris.

From: Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Compilation issue on Solaris.
Date: 2022-07-09 01:27:04
Message-ID: CALtqXTe9p2Jr1xbz7g591=UcAaFD+bZc7j7jRqMYLXe8vKQHyA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While compiling the PostgreSQL I have found that *memset_s function
requires a define "*__STDC_WANT_LIB_EXT1__*" *

*explicit_bzero.c:* In function ‘*explicit_bzero*’:

*explicit_bzero.c:23:9:* *warning: *implicit declaration of function ‘
*memset_s*’; did you mean ‘*memset*’? [*-Wimplicit-function-declaration*]

(void) *memset_s*(buf, len, 0, len);

*^~~~~~~~*

Attached is the patch to define that in the case of Solaris.

--
Ibrar Ahmed

Attachment Content-Type Size
solaris_memset_s_v1.patch application/octet-stream 1.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-07-09 01:46:23 Re: Compilation issue on Solaris.
Previous Message Bruce Momjian 2022-07-09 01:21:55 Re: doc: Move enum storage commentary to top of section