Skip to content

Commit

Permalink
Merge pull request atheme#44 from awilfox/master
Browse files Browse the repository at this point in the history
cacheline: Ensure sysconf var is defined before use on Linux
  • Loading branch information
alyx authored Jun 5, 2019
2 parents d498447 + 2b8892f commit 4c4cc63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libmowgli/platform/cacheline.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static size_t cacheline_size = 0;
void
mowgli_cacheline_bootstrap(void)
{
#ifdef MOWGLI_OS_LINUX
#if defined(MOWGLI_OS_LINUX) && defined(_SC_LEVEL1_DCACHE_LINESIZE)
cacheline_size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
#elif defined(MOWGLI_OS_OSX)
size_t size = sizeof(size_t);
Expand Down

0 comments on commit 4c4cc63

Please sign in to comment.