Skip to content

Commit

Permalink
Add missing stub definition for CPU_ISSET
Browse files Browse the repository at this point in the history
  • Loading branch information
yadij committed Nov 28, 2015
1 parent e8b6618 commit d001800
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compat/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ inline int sched_getaffinity(int, size_t, cpu_set_t *) { return ENOTSUP; }
#define CPU_CLR(cpu, set) (void)0
#endif

#if !defined(CPU_ISSET)
#define CPU_ISSET(cpu, set) false
#endif

// glibc prior to 2.6 lacks CPU_COUNT
#ifndef CPU_COUNT
#define CPU_COUNT(set) CpuCount(set)
Expand Down

0 comments on commit d001800

Please sign in to comment.