diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-06-02 21:58:31 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-06-12 06:56:44 +0200 |
commit | 7ef21540318bd890646dc33f89ff01f76d4c55c7 (patch) | |
tree | a8aa8920a6b0fddc2774af086ddb4efc5fc9912c /meta-python/recipes-devtools/python/python-numeric | |
parent | 4de601006dddbf50501aeaae7f53d2497964a082 (diff) | |
download | meta-openembedded-7ef21540318bd890646dc33f89ff01f76d4c55c7.tar.gz |
python-numeric: Fix build with musl
Use gettimeofday() definition from system
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-numeric')
-rw-r--r-- | meta-python/recipes-devtools/python/python-numeric/0001-it-tries-to-define-this-function-differently-than-it.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-numeric/0001-it-tries-to-define-this-function-differently-than-it.patch b/meta-python/recipes-devtools/python/python-numeric/0001-it-tries-to-define-this-function-differently-than-it.patch new file mode 100644 index 0000000000..81ed744cbd --- /dev/null +++ b/meta-python/recipes-devtools/python/python-numeric/0001-it-tries-to-define-this-function-differently-than-it.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 322e781c67d7a78fc2cfc3d377f50b825fc64abb Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 2 Jun 2017 20:21:01 -0700 | ||
4 | Subject: [PATCH] it tries to define this function differently than it is | ||
5 | defined in sys/time.h. | ||
6 | |||
7 | Use the definition from system | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Packages/RNG/Src/ranf.c | 3 --- | ||
12 | 1 file changed, 3 deletions(-) | ||
13 | |||
14 | diff --git a/Packages/RNG/Src/ranf.c b/Packages/RNG/Src/ranf.c | ||
15 | index 5ca7dc5..e669fa8 100644 | ||
16 | --- a/Packages/RNG/Src/ranf.c | ||
17 | +++ b/Packages/RNG/Src/ranf.c | ||
18 | @@ -149,9 +149,6 @@ void Mixranf(int *s,u32 s48[2]) | ||
19 | #else | ||
20 | struct timeval tv; | ||
21 | struct timezone tz; | ||
22 | -#if !defined(__sgi) | ||
23 | - int gettimeofday(struct timeval *, struct timezone *); | ||
24 | -#endif | ||
25 | |||
26 | (void)gettimeofday(&tv,&tz); | ||
27 | s48[0] = (u32)tv.tv_sec; | ||
28 | -- | ||
29 | 2.13.0 | ||
30 | |||