From 6f5e279187d1b07620a16e1c789dd88cb306497a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 14 Dec 2018 13:47:32 +0000 Subject: stun: tools: drop getopt for arg parsing for better windows compatibility Just implement argument parsing ourselves here. It's not really more lines of code than the getopt.h variant and makes things build on Windows with MSVC without having to ship a separate getopt implementation. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index d27d396..4194df9 100644 --- a/meson.build +++ b/meson.build @@ -81,7 +81,7 @@ cdata.set('NICEAPI_EXPORT', true, description: 'Public library function implementation') # headers -foreach h : ['arpa/inet.h', 'net/in.h', 'netdb.h', 'ifaddrs.h'] +foreach h : ['arpa/inet.h', 'net/in.h', 'netdb.h', 'ifaddrs.h', 'unistd.h'] if cc.has_header(h) define = 'HAVE_' + h.underscorify().to_upper() cdata.set(define, 1) -- cgit v1.2.1