Handle FreeBSD versions greater than or equal to 7.x
authorGarrett Cooper <yanegomi@gmail.com>
Wed, 27 Aug 2014 08:14:30 +0000 (01:14 -0700)
committerGarrett Cooper <yanegomi@gmail.com>
Wed, 27 Aug 2014 08:14:32 +0000 (01:14 -0700)
Sponsored by: EMC / Isilon Storage Division

setup.py

index 9c8f2cd2a244ce3d9a3cdb5f6105ee9d99193992..0cfdfa168acd2a7305130fb7c189e325c7dafad8 100755 (executable)
--- 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")