From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 613EE37B6 for ; Tue, 28 Jun 2016 11:02:43 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 28 Jun 2016 02:02:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,540,1459839600"; d="scan'208";a="1006542904" Received: from unknown (HELO yliu-dev) ([10.239.67.162]) by orsmga002.jf.intel.com with ESMTP; 28 Jun 2016 02:02:41 -0700 Date: Tue, 28 Jun 2016 17:02:54 +0800 From: Yuanhan Liu To: Jianfeng Tan Cc: dev@dpdk.org, huawei.xie@intel.com Message-ID: <20160628090254.GZ23111@yliu-dev.sh.intel.com> References: <1466948986-12255-1-git-send-email-jianfeng.tan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1466948986-12255-1-git-send-email-jianfeng.tan@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] net/virtio-user: fix O_CLOEXEC undeclared error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 09:02:43 -0000 On Sun, Jun 26, 2016 at 01:49:46PM +0000, Jianfeng Tan wrote: > On some older systems, such as SUSE 11, the compiling error shows > as: > .../dpdk/drivers/net/virtio/virtio_user/virtio_user_dev.c:67:22: > error: ‘O_CLOEXEC’ undeclared (first use in this function) > > The fix is to declare _GNU_SOURCE macro before include fcntl.h. I think you need give a reason how that error comes and why this would fix the error. And if you look at the git history, you might want to define this macro in Makefile. See commit e49680a87e06 ("mk: compilation fixes"). Last, don't forgot to run ./scripts/check-git-log.sh against your patch. --yliu