Re: Remove unnecessary includes of system headers in header files

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-01T16:41:07Z
Lists: pgsql-hackers
Peter Eisentraut <peter@eisentraut.org> writes:
> I noticed that some header files included system header files for no 
> apparent reason, so I did some digging and found out that in a few cases 
> the original reason has disappeared.  So I propose the attached patches 
> to remove the unnecessary includes.

Seems generally reasonable.  Have you checked that headerscheck and
cpluspluscheck are happy?

			regards, tom lane



Commits

  1. Remove unnecessary include of <math.h>

  2. Remove unnecessary include of <sys/socket.h>

  3. Remove unnecessary includes of <signal.h>