diff options
Diffstat (limited to '')
-rw-r--r-- | libblkid/lib/fileutils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libblkid/lib/fileutils.c b/libblkid/lib/fileutils.c index c6eb0d6c9..92a391d7e 100644 --- a/libblkid/lib/fileutils.c +++ b/libblkid/lib/fileutils.c @@ -9,6 +9,7 @@ #include <unistd.h> #include <sys/time.h> #include <sys/resource.h> +#include <sys/limits.h> #include "c.h" #include "fileutils.h" @@ -18,6 +19,10 @@ #define _PATH_TMP "/tmp/" #endif +#ifndef OPEN_MAX +#define OPEN_MAX 256 +#endif + /* Create open temporary file in safe way. Please notice that the * file permissions are -rw------- by default. */ int xmkstemp(char **tmpname, char *dir) |