aboutsummaryrefslogtreecommitdiff
path: root/src/tools/pginclude/cpluspluscheck
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-08-13 23:35:24 +1200
committerThomas Munro <tmunro@postgresql.org>2022-08-14 00:09:47 +1200
commit36b3d52459aecd4f8bc39a4604e42186c48aa9d2 (patch)
tree15a7b1211cac9a9fcb193e3eb4984cbe73cb1b8a /src/tools/pginclude/cpluspluscheck
parent37a65d1db14658bc75faa3aea7bd5a064118d135 (diff)
downloadpostgresql-36b3d52459aecd4f8bc39a4604e42186c48aa9d2.tar.gz
postgresql-36b3d52459aecd4f8bc39a4604e42186c48aa9d2.zip
Remove configure probe for sys/resource.h and refactor.
<sys/resource.h> is in SUSv2 and is on all targeted Unix systems. We have a replacement for getrusage() on Windows, so let's just move its declarations into src/include/port/win32/sys/resource.h so that we can use a standard-looking #include. Also remove an obsolete reference to CLK_TCK. Also rename src/port/getrusage.c to win32getrusage.c, following the convention for Windows-only fallback code. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CA%2BhUKG%2BL_3brvh%3D8e0BW_VfX9h7MtwgN%3DnFHP5o7X2oZucY9dg%40mail.gmail.com
Diffstat (limited to 'src/tools/pginclude/cpluspluscheck')
-rwxr-xr-xsrc/tools/pginclude/cpluspluscheck5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tools/pginclude/cpluspluscheck b/src/tools/pginclude/cpluspluscheck
index 6f336deae8a..a2120594806 100755
--- a/src/tools/pginclude/cpluspluscheck
+++ b/src/tools/pginclude/cpluspluscheck
@@ -71,6 +71,7 @@ do
# Additional Windows-specific headers.
test "$f" = src/include/port/win32_port.h && continue
+ test "$f" = src/include/port/win32/sys/resource.h && continue
test "$f" = src/include/port/win32/sys/socket.h && continue
test "$f" = src/include/port/win32_msvc/dirent.h && continue
test "$f" = src/include/port/win32_msvc/utime.h && continue
@@ -90,10 +91,6 @@ do
test "$f" = src/include/port/atomics/generic-msvc.h && continue
test "$f" = src/include/port/atomics/generic-sunpro.h && continue
- # rusagestub.h is also platform-specific, and will be included
- # by utils/pg_rusage.h if necessary.
- test "$f" = src/include/rusagestub.h && continue
-
# sepgsql.h depends on headers that aren't there on most platforms.
test "$f" = contrib/sepgsql/sepgsql.h && continue