netsnmp: handle libnl dependency properly
[buildroot-gz.git] / package / python-numpy / 0002-Don-t-blindly-enable-frexpl-and-ldexpl-for-uClibc.patch
blob42d194182fd46961df4f5ef7826bfe7831b9cb8e
1 From b0a1b9628d17251bb417a063ec6c6e09f32393c2 Mon Sep 17 00:00:00 2001
2 From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
3 Date: Tue, 6 Oct 2015 01:20:48 +0100
4 Subject: [PATCH] Don't blindly enable frexpl and ldexpl for uClibc
6 When the size of double and long double are equal, numpy blindly
7 assumes that frexpl and ldexpl will be available as well. But for
8 uClibc, that's not true: it only defines the long double functions
9 when long double "exists" on the architecture.
11 So make an exception for uClibc.
13 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
14 ---
15 numpy/core/src/private/npy_config.h | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/numpy/core/src/private/npy_config.h b/numpy/core/src/private/npy_config.h
19 index 453dbd0..7ecf72c 100644
20 --- a/numpy/core/src/private/npy_config.h
21 +++ b/numpy/core/src/private/npy_config.h
22 @@ -11,7 +11,7 @@
23 #endif
25 /* Safe to use ldexp and frexp for long double for MSVC builds */
26 -#if (NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE) || defined(_MSC_VER)
27 +#if ((NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE) && !defined(__UCLIBC__)) || defined(_MSC_VER)
28 #ifdef HAVE_LDEXP
29 #define HAVE_LDEXPL 1
30 #endif
31 --
32 2.5.3