Add d_type to our Windows dirent emulation.
authorThomas Munro <tmunro@postgresql.org>
Mon, 7 Sep 2020 11:18:22 +0000 (23:18 +1200)
committerThomas Munro <tmunro@postgresql.org>
Mon, 7 Sep 2020 11:38:19 +0000 (23:38 +1200)
commit87e6ed7c8c6abb6dd62119259d2fd89169a04ac0
treee9b67810f70146301f93d9fe6a1a91a6803ae480
parent74ff28197c14de0aa709497ce707e31bb9af7253
Add d_type to our Windows dirent emulation.

This allows us to skip some stat calls, by extending commit 861c6e7c to
cover Windows systems.

Author: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Magnus Hagander <magnus@hagander.net>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKG%2BFzxupGGN4GpUdbzZN%2Btn6FQPHo8w0Q%2BAPH5Wz8RG%2Bww%40mail.gmail.com
src/include/port/win32_msvc/dirent.h
src/port/dirent.c