aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/win32_port.h
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2025-01-09 12:10:26 +1300
committerThomas Munro <tmunro@postgresql.org>2025-01-09 15:00:58 +1300
commit026762dae39d6efcbfa99a18a15fdfeecbd5b9cc (patch)
tree183c068e7778696618b640b608e1427b74c1a22a /src/include/port/win32_port.h
parent229e7793d96954739d3fb9b37e2ccf77c2803f07 (diff)
downloadpostgresql-026762dae39d6efcbfa99a18a15fdfeecbd5b9cc.tar.gz
postgresql-026762dae39d6efcbfa99a18a15fdfeecbd5b9cc.zip
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/include/port/win32_port.h')
-rw-r--r--src/include/port/win32_port.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/port/win32_port.h b/src/include/port/win32_port.h
index d9794fa8727..7900272e8d1 100644
--- a/src/include/port/win32_port.h
+++ b/src/include/port/win32_port.h
@@ -79,8 +79,6 @@
/* Must be here to avoid conflicting with prototype in windows.h */
#define mkdir(a,b) mkdir(a)
-#define ftruncate(a,b) chsize(a,b)
-
/* Windows doesn't have fsync() as such, use _commit() */
#define fsync(fd) _commit(fd)