Skip to content

Commit e6d383a

Browse files
committed
[Build] Workaround to musl change in basename (#494)
1 parent 8ce563e commit e6d383a

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

aarch64/corefreq-cli.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include <errno.h>
2222
#include <sched.h>
2323
#include <pwd.h>
24+
#ifndef __USE_GNU
25+
#include <libgen.h>
26+
#endif
2427

2528
#include "bitasm.h"
2629
#include "coretypes.h"

aarch64/corefreqd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include <stdarg.h>
2222
#include <errno.h>
2323
#include <pthread.h>
24+
#ifndef __USE_GNU
25+
#include <libgen.h>
26+
#endif
2427

2528
#include "bitasm.h"
2629
#include "arm_reg.h"

x86_64/corefreq-cli.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include <errno.h>
2222
#include <sched.h>
2323
#include <pwd.h>
24+
#ifndef __USE_GNU
25+
#include <libgen.h>
26+
#endif
2427

2528
#include "bitasm.h"
2629
#include "coretypes.h"

x86_64/corefreqd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include <stdarg.h>
2222
#include <errno.h>
2323
#include <pthread.h>
24+
#ifndef __USE_GNU
25+
#include <libgen.h>
26+
#endif
2427

2528
#include "bitasm.h"
2629
#include "amd_reg.h"

0 commit comments

Comments
 (0)