Commit 9a82fc7e authored by Jason Madden's avatar Jason Madden

Fix #473

Based on http://fxr.watson.org/fxr/source/sys/_types.h#L52 freebsd also
uses short for st_nlink in struct stat.

Not mentioning in the change notes because I have no way to actually
verify. But it shouldn't hurt.
parent 31717620
......@@ -19,7 +19,7 @@ def system_bits():
def st_nlink_type():
if sys.platform == "darwin":
if sys.platform == "darwin" or sys.platform.startswith("freebsd"):
return "short"
elif system_bits() == 32:
return "unsigned long"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment