DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andre Muezerie <andremue@linux.microsoft.com>
To: Nicolas Chautru <nicolas.chautru@intel.com>
Cc: dev@dpdk.org, Andre Muezerie <andremue@linux.microsoft.com>
Subject: [PATCH] bbdev: enable to be compiled with MSVC
Date: Tue, 11 Mar 2025 12:17:26 -0700	[thread overview]
Message-ID: <1741720646-22892-1-git-send-email-andremue@linux.microsoft.com> (raw)

The errors below popped up when compiling with MSVC:

../lib/bbdev/rte_bbdev.c(79): error C2061:
    syntax error: identifier 'TAILQ_ENTRY'
../lib/bbdev/rte_bbdev.c(85): error C2059:
    syntax error: '}'

This was caused by a missing include.

Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
 lib/bbdev/meson.build | 6 ------
 lib/bbdev/rte_bbdev.c | 1 +
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/bbdev/meson.build b/lib/bbdev/meson.build
index d8b95a400e..2e48d5f3da 100644
--- a/lib/bbdev/meson.build
+++ b/lib/bbdev/meson.build
@@ -1,12 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-if is_windows
-    build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
 sources = files('rte_bbdev.c',
         'bbdev_trace_points.c')
 headers = files('rte_bbdev.h',
diff --git a/lib/bbdev/rte_bbdev.c b/lib/bbdev/rte_bbdev.c
index d7901cd29d..2c626806f3 100644
--- a/lib/bbdev/rte_bbdev.c
+++ b/lib/bbdev/rte_bbdev.c
@@ -16,6 +16,7 @@
 #include <rte_lcore.h>
 #include <rte_spinlock.h>
 #include <rte_interrupts.h>
+#include <sys/queue.h>
 
 #include "rte_bbdev_op.h"
 #include "rte_bbdev.h"
-- 
2.48.1.vfs.0.1


             reply	other threads:[~2025-03-11 19:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-11 19:17 Andre Muezerie [this message]
2025-03-12 14:56 ` Maxime Coquelin
2025-03-12 15:32   ` Maxime Coquelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1741720646-22892-1-git-send-email-andremue@linux.microsoft.com \
    --to=andremue@linux.microsoft.com \
    --cc=dev@dpdk.org \
    --cc=nicolas.chautru@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).