Skip to content

Commit

Permalink
Fix for building on Rocky Linux 8 (apache#10901)
Browse files Browse the repository at this point in the history
__has_include isn't working switchiing to check if __linux__ is defined
  • Loading branch information
bryancall authored Dec 7, 2023
1 parent 70d5c4e commit d13e3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iocore/cache/Store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "tscore/SimpleTokenizer.h"
#include "tscore/runroot.h"

#if __has_include(<linux/major.h>)
#if defined(__linux__)
#include <linux/major.h>
#endif

Expand Down

0 comments on commit d13e3a7

Please sign in to comment.