From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CAE5645B00; Thu, 10 Oct 2024 11:54:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C0D44025E; Thu, 10 Oct 2024 11:54:47 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by mails.dpdk.org (Postfix) with ESMTP id 398D7400D6 for ; Thu, 10 Oct 2024 11:54:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728554087; x=1760090087; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BrL6WMi5mKwujidUY4bd95hXBc3QAulx3c2AaU1BQx4=; b=bWU4Mpa61jVBWiqLj4B9ate2do/6gFdswMLCJT02wNVwy3zT85u/dpCA tvBc9zkxRI7z5XTCb/7ejXrMQyhW04u8H/YIjZnNVqn0C066YJBGM1xK6 oh/VsHWTFqEGIQFA4REjSs0uRF3qoyWAk9oCWDNLBDHCgJZH7eyAwd4PF q3mfRJK9YVB/DaA5Cl6PW7tIzTdZ9/ZKQ7D5DNOzAdQHE/CuxjHMkXLbs gJGyOnpDvHBuPGg3uJnq6iA05YUtF2gxfr/PWDf7qCtxFK4L40tAg+Zcy /WUUhaGgJvF5oJSLdQ1VYNxaqfByDZJ3MBqWCc6Hn6gCbzxxeT8wV28ki A==; X-CSE-ConnectionGUID: uG+vLnXsTB+uJohUT+AYSw== X-CSE-MsgGUID: C5xN/ET4SuuHOVnCFYNV5Q== X-IronPort-AV: E=McAfee;i="6700,10204,11220"; a="39266235" X-IronPort-AV: E=Sophos;i="6.11,192,1725346800"; d="scan'208";a="39266235" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2024 02:54:45 -0700 X-CSE-ConnectionGUID: FEcvXSoUTQW69YAwcUB6Ow== X-CSE-MsgGUID: Ip54Qw6KT969PHsdSDkXWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,192,1725346800"; d="scan'208";a="81338031" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa005.jf.intel.com with ESMTP; 10 Oct 2024 02:54:43 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: david.marchand@redhat.com, ferruh.yigit@amd.com, thomas@monjalon.net, Bruce Richardson , Dmitry Kozlyuk , Tyler Retzlaff , Pallavi Kadam Subject: [PATCH] eal/windows: define standard file numbers Date: Thu, 10 Oct 2024 10:54:34 +0100 Message-ID: <20241010095434.358810-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The macros for STD*_FILENO are missing on windows. Add defines for them to the DPDK-local unistd.h file. Signed-off-by: Bruce Richardson --- lib/eal/windows/include/unistd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/eal/windows/include/unistd.h b/lib/eal/windows/include/unistd.h index 6b33005b24..78150c6480 100644 --- a/lib/eal/windows/include/unistd.h +++ b/lib/eal/windows/include/unistd.h @@ -12,4 +12,15 @@ #include +/* + * Windows appears to be missing STD*_FILENO macros, so define here. + * For simplicity, assume that if STDIN_FILENO is missing, all are, + * rather than checking each individually. + */ +#ifndef STDIN_FILENO +#define STDIN_FILENO _fileno(stdin) +#define STDOUT_FILENO _fileno(stdout) +#define STDERR_FILENO _fileno(stderr) +#endif + #endif /* _UNISTD_H_ */ -- 2.43.0