Fix missing headers
authorJohn Spencer <maillist-cryptsetup@barfooze.de>
Fri, 1 Feb 2013 07:36:36 +0000 (08:36 +0100)
committerMilan Broz <gmazyland@gmail.com>
Fri, 1 Feb 2013 07:39:12 +0000 (08:39 +0100)
2 header inclusions were missing, one for PATH_MAX (limits.h) and one
for FD_ZERO, FD_SET, ... (sys/select.h)

on glibc, those headers are erroneusly (namespace pollution) pulled in
through other headers, so the author didnt notice.

Signed-Off-By: John Spencer <maillist-cryptsetup@barfooze.de>
lib/random.c
lib/utils_devpath.c

index 0664e97..25c8a2c 100644 (file)
@@ -23,6 +23,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <assert.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <assert.h>
+#include <sys/select.h>
 
 #include "libcryptsetup.h"
 #include "internal.h"
 
 #include "libcryptsetup.h"
 #include "internal.h"
index 7e872ad..fc5175c 100644 (file)
@@ -28,6 +28,7 @@
 #include <dirent.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <dirent.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <limits.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include "utils_dm.h"
 #include <sys/stat.h>
 #include <sys/types.h>
 #include "utils_dm.h"