mirror of https://github.com/microsoft/vcpkg.git
22 lines
658 B
Diff
22 lines
658 B
Diff
diff --git a/meson.build b/meson.build
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -2624,7 +2624,7 @@ header_checks = [
|
|
'copyfile.h',
|
|
'crtdefs.h',
|
|
'execinfo.h',
|
|
- 'getopt.h',
|
|
+ # 'getopt.h', # vcpkg: skip to avoid getopt-win32 header pollution
|
|
'ifaddrs.h',
|
|
'mbarrier.h',
|
|
'strings.h',
|
|
@@ -2714,7 +2714,7 @@ endforeach
|
|
|
|
if cc.has_type('struct option',
|
|
args: test_c_args, include_directories: postgres_inc,
|
|
- prefix: '@0@'.format(cdata.get('HAVE_GETOPT_H')) == '1' ? '#include <getopt.h>' : '')
|
|
+ prefix: '@0@'.format(cdata.get('HAVE_GETOPT_H', 0)) == '1' ? '#include <getopt.h>' : '')
|
|
cdata.set('HAVE_STRUCT_OPTION', 1)
|
|
endif
|
|
|