about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJyun-Yan You <jyyou@cs.nctu.edu.tw>2012-01-15 03:47:14 +0800
committerBrian Anderson <banderson@mozilla.com>2012-01-16 00:38:52 -0800
commit79d738845569e69fdbd4d378e203432f0e3bc91d (patch)
tree7830a5b428e73a02d011c4a4353eddb2b1864887 /src
parentc847c807155aa5f2a87bac39f57312c76087d3eb (diff)
downloadrust-79d738845569e69fdbd4d378e203432f0e3bc91d.tar.gz
rust-79d738845569e69fdbd4d378e203432f0e3bc91d.zip
add lgamma functions for FreeBSD
Diffstat (limited to 'src')
-rw-r--r--src/libcore/cmath.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/cmath.rs b/src/libcore/cmath.rs
index 014a6f6624e..e7761a9b383 100644
--- a/src/libcore/cmath.rs
+++ b/src/libcore/cmath.rs
@@ -49,6 +49,7 @@ native mod c_double {
     pure fn ldexp(x: c_double, n: c_int) -> c_double;
     #[cfg(target_os = "linux")]
     #[cfg(target_os = "macos")]
+    #[cfg(target_os = "freebsd")]
     #[link_name="lgamma_r"] pure fn lgamma(n: c_double,
                                            &sign: c_int) -> c_double;
     #[cfg(target_os = "win32")]
@@ -130,6 +131,7 @@ native mod c_float {
 
     #[cfg(target_os="linux")]
     #[cfg(target_os="macos")]
+    #[cfg(target_os="freebsd")]
     #[link_name="lgammaf_r"] pure fn lgamma(n: c_float,
                                             &sign: c_int) -> c_float;