meson: fix header path of ossp-uuid
authorAndres Freund <andres@anarazel.de>
Sat, 11 Mar 2023 01:18:52 +0000 (17:18 -0800)
committerAndres Freund <andres@anarazel.de>
Sat, 11 Mar 2023 21:24:40 +0000 (13:24 -0800)
The ossp-uuid pkg-config file includes the necessary -I to include the header
as uuid.h. Previously this would only work if ossp-uuid has its headers in
ossp/ in an already searched path.

Reported-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/7bb8b8a5-5297-ab3c-3412-466fd0124d00@dunslane.net

meson.build

index 2409cc2254d8008cc6c0e114ec95624d8b709094..d4384f1bf6dceabb2daa972ae4963fe7f7a7e79c 100644 (file)
@@ -1268,7 +1268,7 @@ if uuidopt != 'none'
   elif uuidopt == 'ossp'
     uuid = dependency('ossp-uuid', required: true)
     uuidfunc = 'uuid_export'
-    uuidheader = 'ossp/uuid.h'
+    uuidheader = 'uuid.h'
   else
     error('huh')
   endif