pkgsrc/databases/postgresql96/patches/patch-src_backend_utils_adt_datetime.c

14 lines
436 B
C

$NetBSD: patch-src_backend_utils_adt_datetime.c,v 1.1 2016/10/29 19:41:55 adam Exp $
--- src/backend/utils/adt/datetime.c.orig 2014-12-16 01:07:34.000000000 +0000
+++ src/backend/utils/adt/datetime.c
@@ -31,6 +31,9 @@
#include "utils/memutils.h"
#include "utils/tzparser.h"
+#if defined(__NetBSD__)
+#define strtoi pg_strtoi
+#endif
static int DecodeNumber(int flen, char *field, bool haveTextMonth,
int fmask, int *tmask,