diff options
| author | Thomas Munro | 2025-01-08 23:10:26 +0000 |
|---|---|---|
| committer | Thomas Munro | 2025-01-09 02:00:23 +0000 |
| commit | af109e3399b63355f126f61916dcd16d833d8481 (patch) | |
| tree | e242220c826434f74115718fff24b8190f97c028 /src/pl | |
| parent | 45aef9f6bb0fd5784e2f596f93aae3619c20b1d8 (diff) | |
Provide 64-bit ftruncate() and lseek() on Windows.
Change our ftruncate() macro to use the 64-bit variant of chsize(), and
add a new macro to redirect lseek() to _lseeki64().
Back-patch to all supported releases, in preparation for a bug fix.
Tested-by: Davinder Singh <davinder.singh@enterprisedb.com>
Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plperl/plperl_system.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pl/plperl/plperl_system.h b/src/pl/plperl/plperl_system.h index 48f6575e513..c3b66ee2623 100644 --- a/src/pl/plperl/plperl_system.h +++ b/src/pl/plperl/plperl_system.h @@ -109,6 +109,7 @@ #undef fstat #undef kill #undef listen +#undef lseek #undef lstat #undef mkdir #undef open |
