Skip to content

Commit be1a425

Browse files
authored
Merge pull request #3297 from outerpassage/develop
fix compilation with musl libc
2 parents b2319fd + eba2cd9 commit be1a425

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CONTRIBUTORS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,6 @@ In chronological order:
194194

195195
* PingTouGe Semiconductor Co., Ltd.
196196
* [2020-10] Add RISC-V Vector (0.7.1) support. Optimize BLAS kernels for Xuantie C910
197+
198+
* River Dillon <[email protected]>
199+
* [2021-07-10] fix compilation with musl libc

driver/others/memory.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,6 @@ inline int atoi(const char *str) { return 0; }
17021702
#include <sys/sysinfo.h>
17031703
#include <sched.h>
17041704
#include <errno.h>
1705-
#include <linux/unistd.h>
17061705
#include <sys/syscall.h>
17071706
#include <sys/time.h>
17081707
#include <sys/resource.h>

openblas_config_template.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@ typedef int blasint;
9999

100100
/* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */
101101
#ifdef OPENBLAS_OS_LINUX
102+
#define _GNU_SOURCE
102103
#include <sched.h>
103104
#endif

0 commit comments

Comments
 (0)