$OpenBSD: patch-include_tds_sysdep_public_h_in,v 1.2 2019/10/18 21:00:41 sthen Exp $

Index: include/tds_sysdep_public.h.in
--- include/tds_sysdep_public.h.in.orig
+++ include/tds_sysdep_public.h.in
@@ -25,7 +25,8 @@
  * MUST not include config.h
  */
 
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+/* avoid conflicting definition; __STDC_VERSION__ is not defined with ports gcc */
+#if defined(__OpenBSD__) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
 #  include <stdint.h>
 #elif defined(__sun) && defined(__SVR4)
 #  include <inttypes.h>
