Fix build for Gentoo

pull/32/head
shiz01 2022-05-22 11:12:15 +07:00
parent f826831282
commit c9cd274b2b
Signed by untrusted user: Shiz01
GPG Key ID: EC8C073257D8652F
1 changed files with 20 additions and 2 deletions

View File

@ -4,8 +4,26 @@
#include <stdexcept>
#include <string.h>
#include <assert.h>
#include <jerasure/reed_sol.h>
#include <jerasure.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.h>
#endif
}
#include <map>
#include "allocator.h"
#include "xor.h"