Switch to side-by-side view
--- a/src/closefrom.cpp +++ b/src/closefrom.cpp @@ -154,6 +154,10 @@ static int closefrom_maxfd = -1; +#ifndef OPEN_MAX +#define OPEN_MAX 256 /* Guess */ +#endif + void libclf_setmaxfd(int max) { closefrom_maxfd = max;
--- a/src/closefrom.cpp +++ b/src/closefrom.cpp @@ -154,6 +154,10 @@ static int closefrom_maxfd = -1; +#ifndef OPEN_MAX +#define OPEN_MAX 256 /* Guess */ +#endif + void libclf_setmaxfd(int max) { closefrom_maxfd = max;