From c0e54589b527859e9b6c0049414d0ce90a6c41d5 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 5 Mar 2014 20:52:56 +0100 Subject: [PATCH] Fix non-osx builds again. --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ffc3e12a..db24e6ca 100644 --- a/setup.py +++ b/setup.py @@ -629,6 +629,9 @@ if os.name == 'nt': else: extra_compile_args.append("-pedantic") +if sys.platform == 'darwin': + define_macros.extend(('HAVE_STRLCPY', None), ('HAVE_STRLCAT', None)) + myname = "Bastian Kleineidam" myemail = "bastian.kleineidam@web.de" @@ -932,8 +935,7 @@ o a command line, GUI and web interface extra_compile_args = extra_compile_args, library_dirs = library_dirs, libraries = libraries, - define_macros = define_macros + [('YY_NO_INPUT', None), - ('HAVE_STRLCPY', None), ('HAVE_STRLCAT', None)], + define_macros = define_macros + [('YY_NO_INPUT', None)], include_dirs = include_dirs + [normpath("linkcheck/HtmlParser")], ), Extension("linkcheck.network._network",