crt: Add emulation of _get_dstbias() function for pre-msvcr80 import libs

Function _get_dstbias() is available in msvcr80+ and UCRT.

Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 6f04933..924a90c 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -333,6 +333,7 @@
   misc/_aligned_recalloc.c \
   misc/_configthreadlocale.c \
   misc/_get_daylight.c \
+  misc/_get_dstbias.c \
   misc/_recalloc.c \
   misc/_set_purecall_handler.c \
   misc/imaxdiv.c \
@@ -879,6 +880,7 @@
   misc/_aligned_recalloc.c \
   misc/_configthreadlocale.c \
   misc/_get_daylight.c \
+  misc/_get_dstbias.c \
   misc/_get_errno.c \
   misc/_initterm_e.c \
   misc/_recalloc.c \
diff --git a/mingw-w64-crt/misc/_get_dstbias.c b/mingw-w64-crt/misc/_get_dstbias.c
new file mode 100644
index 0000000..049fa89
--- /dev/null
+++ b/mingw-w64-crt/misc/_get_dstbias.c
@@ -0,0 +1,20 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+#include <time.h>
+#include <errno.h>
+
+errno_t __cdecl _get_dstbias(long *value)
+{
+  if (!value)
+  {
+    errno = EINVAL;
+    return EINVAL;
+  }
+
+  *value = _dstbias;
+  return 0;
+}
+errno_t (__cdecl *__MINGW_IMP_SYMBOL(_get_dstbias))(long *) = _get_dstbias;