Remove configure probe for dlopen, and refactor.
Thomas Munro <tmunro@postgresql.org>
Remove configure probe for dlopen, and refactor. dlopen() is in SUSv2 and all targeted Unix systems have it. We still need replacement functions for Windows, but we don't need a configure probe for that. Since it's no longer needed by other operating systems, rename dlopen.c to win32dlopen.c and move the declarations into win32_port.h. Likewise, the macros RTLD_NOW and RTLD_GLOBAL now only need to be defined on Windows, since all targeted Unix systems have 'em. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +6 −37 |
| configure.ac | modified | +1 −3 |
| src/backend/utils/fmgr/dfmgr.c | modified | +2 −2 |
| src/include/pg_config.h.in | modified | +0 −11 |
| src/include/port.h | modified | +0 −23 |
| src/include/port/win32_port.h | modified | +9 −0 |
| src/port/win32dlopen.c (from src/port/dlopen.c) | renamed | +3 −7 |
| src/tools/msvc/Mkvcbuild.pm | modified | +2 −1 |
| src/tools/msvc/Solution.pm | modified | +0 −3 |
Discussion
- Cleaning up historical portability baggage 108 messages · 2022-07-10 → 2025-06-10