mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 07:26:28 -05:00
Misc fixes for older platforms
This commit is contained in:
parent
51b65cd126
commit
8d7017273f
2 changed files with 10 additions and 10 deletions
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#define PAD_LEN 16
|
||||
#define MAX_ATTEMPTS 3
|
||||
|
|
@ -75,12 +76,12 @@ namespace fs
|
|||
if((fd == -1) && (errno == EEXIST))
|
||||
continue;
|
||||
if(fd == -1)
|
||||
return {-errno,std::string{}};
|
||||
return std::make_tuple(-errno,std::string());
|
||||
|
||||
return {fd,tmp_filepath};
|
||||
return std::make_tuple(fd,tmp_filepath);
|
||||
}
|
||||
|
||||
return {-EEXIST,std::string{}};
|
||||
return std::make_tuple(-EEXIST,std::string());
|
||||
}
|
||||
|
||||
std::tuple<int,std::string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue