Skip to content

Commit

Permalink
Update for building on FreeBSD
Browse files Browse the repository at this point in the history
Thanks sk89q for the patch.

[#13 state:resolved]
  • Loading branch information
Paul Davis committed May 10, 2009
1 parent 74291c8 commit 9eafe19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions THANKS
Expand Up @@ -3,3 +3,4 @@ Thanks For Patches and Pointers
===============================
benoitc - build system tweaks, compiling on OpenBSD
Mark Lee - Patch for iterating JS arrays in Python
sk89q - Info for FreeBSD builds
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -68,13 +68,13 @@ def platform_config():
"-Wno-strict-prototypes"
])

if sysname == "Linux":
if sysname in ["Linux", "FreeBSD"]:
config["extra_compile_args"].extend([
"-DHAVE_VA_COPY",
"-DVA_COPY=va_copy"
])

if sysname in ["Darwin", "Linux"]:
if sysname in ["Darwin", "Linux", "FreeBSD"]:
config["extra_compile_args"].append("-DXP_UNIX")
else:
raise RuntimeError("Unknown system name: %s" % sysname)
Expand Down

0 comments on commit 9eafe19

Please sign in to comment.