From 97ab9f0bb1346559e5a3865d208470ef332c6802 Mon Sep 17 00:00:00 2001
From: Andres Freund <andres@anarazel.de>
Date: Mon, 8 Jul 2024 23:12:15 -0700
Subject: [PATCH v2 10/10] meson: wip: tcl

Author:
Reviewed-by:
Discussion: https://postgr.es/m/
Backpatch:
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index fe07f7d67c7..cffd571fa3a 100644
--- a/meson.build
+++ b/meson.build
@@ -919,7 +919,8 @@ if not tclopt.disabled()
       dirs: test_lib_d)
   endif
 
-  if not cc.has_header('tcl.h', dependencies: tcl_dep, required: tclopt)
+  if not cc.has_header('tcl.h', dependencies: tcl_dep, required: tclopt,
+      args: test_c_args, include_directories: postgres_inc)
     tcl_dep = not_found_dep
   endif
 endif
-- 
2.44.0.279.g3bd955d269

