patch-sql_pgq_triggers_stringutil_c 557 B

1234567891011121314151617181920
  1. $OpenBSD: patch-sql_pgq_triggers_stringutil_c,v 1.1 2016/12/18 18:21:40 jeremy Exp $
  2. Fix build on PostgreSQL 9.6, patch taken from
  3. https://github.com/markokr/skytools/pull/56
  4. --- sql/pgq/triggers/stringutil.c.orig Tue Nov 1 04:28:50 2016
  5. +++ sql/pgq/triggers/stringutil.c Tue Nov 1 04:28:53 2016
  6. @@ -19,7 +19,11 @@
  7. #include <postgres.h>
  8. #include <lib/stringinfo.h>
  9. #include <mb/pg_wchar.h>
  10. +#if PG_VERSION_NUM >= 90600
  11. +#include <common/keywords.h>
  12. +#else
  13. #include <parser/keywords.h>
  14. +#endif
  15. #include <utils/memutils.h>
  16. #include "stringutil.h"