Skip to content

Commit

Permalink
fix compile errors with musl libc
Browse files Browse the repository at this point in the history
  • Loading branch information
stf committed Aug 16, 2014
1 parent f67d709 commit 9dc2ade
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/sys/zfs_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
#include <sys/sunddi.h>
#include <sys/debug.h>

#ifndef RLIM64_INFINITY
#define RLIM64_INFINITY (~0ULL)
#endif

/*
* Stack
*/
Expand Down Expand Up @@ -614,7 +618,7 @@ extern void delay(clock_t ticks);
#define minclsyspri 60
#define maxclsyspri 99

#define CPU_SEQID (pthread_self() & (max_ncpus - 1))
#define CPU_SEQID ((long long)pthread_self() & (max_ncpus - 1))

#define kcred NULL
#define CRED() NULL
Expand Down

0 comments on commit 9dc2ade

Please sign in to comment.