Merge pull request #3297 from outerpassage/develop

fix compilation with musl libc
This commit is contained in:
Martin Kroeker 2021-07-11 17:10:20 +02:00 committed by GitHub
commit be1a42507c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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>

View File

@ -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