Re: Remove unnecessary includes of system headers in header files
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-02T08:39:05Z
Lists: pgsql-hackers
On 01.12.23 17:41, Tom Lane wrote: > 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? Yes, I ran it through Cirrus, which includes those checks.
Commits
-
Remove unnecessary include of <math.h>
- 457428d9e99b 17.0 landed
-
Remove unnecessary include of <sys/socket.h>
- da67cb0a4487 17.0 landed
-
Remove unnecessary includes of <signal.h>
- dffb2b478f54 17.0 landed