Return-Path: Received: from mail-wi0-f172.google.com ([209.85.212.172]:49020 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbaI3HmD (ORCPT ); Tue, 30 Sep 2014 03:42:03 -0400 Received: by mail-wi0-f172.google.com with SMTP id ex7so3245678wid.17 for ; Tue, 30 Sep 2014 00:42:01 -0700 (PDT) From: Thomas De Schampheleire To: linux-modules@vger.kernel.org Cc: Robert Yang Subject: [PATCH] Add dummy definition of O_CLOEXEC Date: Tue, 30 Sep 2014 09:41:46 +0200 Message-Id: <1412062906-27378-1-git-send-email-patrickdepinguin@gmail.com> Sender: linux-modules-owner@vger.kernel.org List-ID: From: Robert Yang O_CLOEXEC is introduced from Linux 2.6.23, so old kernel doesn't have it, we need check before use. This patch is much more like a workaround, since it may need fcntl() use FD_CLOEXEC to replace. This problem was reported by "Ting Liu " [Thomas De Schampheleire -- 1.7.1