summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-08-25 04:45:50 +0200
committerEthan Yonker <dees_troy@teamw.in>2017-08-25 04:45:50 +0200
commit95e8007578193422ef7fe2d098b80e8ba99fc48d (patch)
tree856f90d15b1f7c74d497503bd6ac6fd12b08b32d /libblkid
parentMerge "Fix typos / inconsistencies in German language" into android-7.1 (diff)
downloadandroid_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.gz
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.bz2
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.lz
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.xz
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.zst
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.zip
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/lib/fileutils.c5
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)