--- open-iscsi-2.0-871.orig/usr/iscsi_sysfs.c 2009-07-11 05:55:58.000000000 +0200 +++ open-iscsi-2.0-871/usr/iscsi_sysfs.c 2010-11-22 23:16:35.000000000 +0100 @@ -22,6 +22,7 @@ #include <string.h> #include <errno.h> #include <dirent.h> +#include <sys/stat.h> #include "log.h" #include "initiator.h"