Compare commits

...

1 Commits

Author SHA1 Message Date
shiz01 c9cd274b2b
Fix build for Gentoo 2022-05-22 11:26:18 +07:00
1 changed files with 20 additions and 2 deletions

View File

@ -4,8 +4,26 @@
#include <stdexcept> #include <stdexcept>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
extern "C" {
#if defined __has_include
# if __has_include (<jerasure.h>)
# include <jerasure.h>
# endif
// In Gentoo hasn't jerasure directory with header files.
# if __has_include (<reed_sol.h>)
# include <reed_sol.h>
# elif __has_include (<jerasure/reed_sol.h>)
# include <jerasure/reed_sol.h>
# endif
#else
// default path to headers in Debian
# include <jerasure/reed_sol.h> # include <jerasure/reed_sol.h>
# include <jerasure.h> # include <jerasure.h>
#endif
}
#include <map> #include <map>
#include "allocator.h" #include "allocator.h"
#include "xor.h" #include "xor.h"