mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
4de601006d
commit
7ef2154031
|
|
@ -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
|
||||
|
||||
|
|
@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://Legal.htm;md5=e3ce75dedd4043918d15979ae43e312e"
|
|||
|
||||
PR = "ml3"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/Numeric-${PV}.tar.gz"
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/Numeric-${PV}.tar.gz \
|
||||
file://0001-it-tries-to-define-this-function-differently-than-it.patch \
|
||||
"
|
||||
S = "${WORKDIR}/Numeric-${PV}"
|
||||
|
||||
inherit distutils
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user