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 | 7747df76cf4c23f185f830fb067cfeff8e26aef1 (patch) | |
tree | ec5829a09a94c12910a51b182cac53479986a841 /recipes-devtools/python/python-numeric | |
parent | 3adeacaee14d6d77b75a7bdc0b5885d08a0e555e (diff) | |
download | meta-python2-7747df76cf4c23f185f830fb067cfeff8e26aef1.tar.gz |
python-numeric: Fix build with musl
Use gettimeofday() definition from system
(From meta-openembedded commit: 7ef21540318bd890646dc33f89ff01f76d4c55c7)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Diffstat (limited to 'recipes-devtools/python/python-numeric')
-rw-r--r-- | 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/recipes-devtools/python/python-numeric/0001-it-tries-to-define-this-function-differently-than-it.patch b/recipes-devtools/python/python-numeric/0001-it-tries-to-define-this-function-differently-than-it.patch new file mode 100644 index 0000000..81ed744 --- /dev/null +++ b/recipes-devtools/python/python-numeric/0001-it-tries-to-define-this-function-differently-than-it.patch @@ -0,0 +1,30 @@ +From 322e781c67d7a78fc2cfc3d377f50b825fc64abb Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Fri, 2 Jun 2017 20:21:01 -0700 +Subject: [PATCH] it tries to define this function differently than it is + defined in sys/time.h. + +Use the definition from system + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + Packages/RNG/Src/ranf.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/Packages/RNG/Src/ranf.c b/Packages/RNG/Src/ranf.c +index 5ca7dc5..e669fa8 100644 +--- a/Packages/RNG/Src/ranf.c ++++ b/Packages/RNG/Src/ranf.c +@@ -149,9 +149,6 @@ void Mixranf(int *s,u32 s48[2]) + #else + struct timeval tv; + struct timezone tz; +-#if !defined(__sgi) +- int gettimeofday(struct timeval *, struct timezone *); +-#endif + + (void)gettimeofday(&tv,&tz); + s48[0] = (u32)tv.tv_sec; +-- +2.13.0 + |