summaryrefslogtreecommitdiff
path: root/gl/lib/stat-w32.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-01-05 12:02:12 +0000
committerColin Watson <cjwatson@debian.org>2019-01-05 12:02:12 +0000
commit182141146d0ad9c735949840504bdfc66332da4e (patch)
treed8cbbf520eb4b5c656a54b2e36947008dcb751ad /gl/lib/stat-w32.c
parent68d15a97e215a4b7927039421566bbb1f74e5460 (diff)
parent033354546dc61e8a996d281aa2da2c440ac95c9f (diff)
Import man-db_2.8.5.orig.tar.xz
Diffstat (limited to 'gl/lib/stat-w32.c')
-rw-r--r--gl/lib/stat-w32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gl/lib/stat-w32.c b/gl/lib/stat-w32.c
index 802b38a8..ffa99429 100644
--- a/gl/lib/stat-w32.c
+++ b/gl/lib/stat-w32.c
@@ -1,5 +1,5 @@
/* Core of implementation of fstat and stat for native Windows.
- Copyright (C) 2017-2018 Free Software Foundation, Inc.
+ Copyright (C) 2017-2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -38,6 +38,10 @@
#include "pathmax.h"
#include "verify.h"
+/* Avoid warnings from gcc -Wcast-function-type. */
+#define GetProcAddress \
+ (void *) GetProcAddress
+
#if _GL_WINDOWS_STAT_INODES == 2
/* GetFileInformationByHandleEx was introduced only in Windows Vista. */
typedef DWORD (WINAPI * GetFileInformationByHandleExFuncType) (HANDLE hFile,