From bda084b897d957bbb83b01eaca95471a4642b94f Mon Sep 17 00:00:00 2001 From: Garrett Cooper Date: Wed, 27 Aug 2014 01:14:30 -0700 Subject: [PATCH] Handle FreeBSD versions greater than or equal to 7.x Sponsored by: EMC / Isilon Storage Division --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9c8f2cd..0cfdfa1 100755 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ elif u_sysname == "GNU/kFreeBSD": libs.append("acl") elif u_sysname == "FreeBSD": macros.append(("HAVE_FREEBSD", None)) - if u_release.startswith("7."): + if 7 <= int(u_release.split('.', 1)[0]): macros.append(("HAVE_LEVEL2", None)) elif u_sysname == "Darwin": libs.append("pthread") -- 2.39.5