Merge pull request #3297 from outerpassage/develop
fix compilation with musl libc
This commit is contained in:
commit
be1a42507c
|
@ -194,3 +194,6 @@ In chronological order:
|
||||||
|
|
||||||
* PingTouGe Semiconductor Co., Ltd.
|
* PingTouGe Semiconductor Co., Ltd.
|
||||||
* [2020-10] Add RISC-V Vector (0.7.1) support. Optimize BLAS kernels for Xuantie C910
|
* [2020-10] Add RISC-V Vector (0.7.1) support. Optimize BLAS kernels for Xuantie C910
|
||||||
|
|
||||||
|
* River Dillon <oss@outerpassage.net>
|
||||||
|
* [2021-07-10] fix compilation with musl libc
|
||||||
|
|
|
@ -1702,7 +1702,6 @@ inline int atoi(const char *str) { return 0; }
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <linux/unistd.h>
|
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
|
@ -99,5 +99,6 @@ typedef int blasint;
|
||||||
|
|
||||||
/* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */
|
/* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */
|
||||||
#ifdef OPENBLAS_OS_LINUX
|
#ifdef OPENBLAS_OS_LINUX
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue