summaryrefslogtreecommitdiff
path: root/src/pl
diff options
context:
space:
mode:
authorThomas Munro2025-01-08 23:10:26 +0000
committerThomas Munro2025-01-09 02:00:58 +0000
commit026762dae39d6efcbfa99a18a15fdfeecbd5b9cc (patch)
tree183c068e7778696618b640b608e1427b74c1a22a /src/pl
parent229e7793d96954739d3fb9b37e2ccf77c2803f07 (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pl/plperl/plperl_system.h b/src/pl/plperl/plperl_system.h
index f2e7f1873dc..57355ac1ed4 100644
--- a/src/pl/plperl/plperl_system.h
+++ b/src/pl/plperl/plperl_system.h
@@ -103,6 +103,7 @@
#undef fstat
#undef kill
#undef listen
+#undef lseek
#undef lstat
#undef mkdir
#undef open