I noticed thanks to a buildfarm warning that replication/walreceiver.h
now declares the walrcv_receive hook as
typedef int (*walrcv_receive_type) (char **buffer, int *wait_fd);
This is flat out wrong, isn't it? wait_fd needs to be of type pgsocket,
which is a different width from "int" on Windows.
regards, tom lane