pgsql: Prevent compilation of frontend-only files in src/common/ with b

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Prevent compilation of frontend-only files in src/common/ with b
Date: 2020-06-30 04:26:27
Message-ID: E1jq7ql-0005B2-No@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Prevent compilation of frontend-only files in src/common/ with backend

Any frontend-only file of src/common/ should include a protection to
prevent such code to be included in the backend compilation.
fe_memutils.c and restricted_token.c have been doing that, while
file_utils.c (since bf5bb2e) and logging.c (since fc9a62a) forgot it.

Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/20200625080757.GI130132@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/324435eb14e4f41cd430f96c9b13ad9b160e45e4

Modified Files
--------------
src/common/file_utils.c | 5 +++++
src/common/logging.c | 5 +++++
2 files changed, 10 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2020-06-30 14:57:13 pgsql: Add +(pg_lsn,numeric) and -(pg_lsn,numeric) operators.
Previous Message Amit Kapila 2020-06-30 04:13:03 Re: pgsql: Enable Unix-domain sockets support on Windows