Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Add postgres_inc to meson check for Python.h
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 13 Jun 2024 11:30:10 +0000 (07:30 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 13 Jun 2024 11:32:18 +0000 (07:32 -0400)
Required for Cygwin.

Backpatch to release 16.

meson.build

index f23ea6eec2d44f7b694e114565066d32751077f3..60025ac8b55be3f41d77d302c073bddc0163e6c0 100644 (file)
@@ -1069,7 +1069,7 @@ if not pyopt.disabled()
   if python3_inst.found()
     python3_dep = python3_inst.dependency(embed: true, required: pyopt)
     # Remove this check after we depend on Meson >= 1.1.0
-    if not cc.check_header('Python.h', dependencies: python3_dep, required: pyopt)
+    if not cc.check_header('Python.h', dependencies: python3_dep, required: pyopt, include_directories: postgres_inc)
       python3_dep = not_found_dep
     endif
   endif