From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuG3P-0007yC-Dv for qemu-devel@nongnu.org; Thu, 05 Nov 2015 03:37:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuG3K-0007JU-Dj for qemu-devel@nongnu.org; Thu, 05 Nov 2015 03:37:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuG3K-0007JQ-84 for qemu-devel@nongnu.org; Thu, 05 Nov 2015 03:37:50 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 545D0C0033EE for ; Thu, 5 Nov 2015 08:37:49 +0000 (UTC) Message-ID: <1446712667.30393.8.camel@redhat.com> From: Gerd Hoffmann Date: Thu, 05 Nov 2015 09:37:47 +0100 In-Reply-To: <1446595225-23608-3-git-send-email-bsd@redhat.com> References: <1446595225-23608-1-git-send-email-bsd@redhat.com> <1446595225-23608-3-git-send-email-bsd@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] usb-mtp: Add support for inotify based file monitoring List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bandan Das Cc: qemu-devel@nongnu.org > +#include What happens on non-linux systems? I guess we need some #ifdefs to not break the build there, or enable mtp only for CONFIG_LINUX=y instead of CONFIG_POSIX=y. > +enum inotify_event_type { > + CREATE = 1, > + DELETE = 2, > + MODIFY = 3, > +}; Patch #3 removes this, I'd suggest to extent "enum mtp_code" with the event codes here so we don't need this temporary thing. cheers, Gerd