Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eal/windows: fix debug build with MinGW
Compiling with MinGW in --buildtype=debug produces a redefinition error for strncasecmp. The root cause is that rte_os.h shouldn't be injecting POSIX definitions into the environment. It is the applications responsibility to decide how to handle missing functionality. Resolving this properly will require further work, but in the meantime wrap all such definitions with #ifndef/#endif. This resolves the specific issue with strncasecmp and handles similar issues that applications may encounter. Fixes: e8428a9 ("eal/windows: add some basic functions and macros") Cc: stable@dpdk.org Reported-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Committed-by: Thomas Monjalon <thomas@monjalon.net> Commit-Id: a728832 Change-Id: I3ce584726d9eb1d9a9fc38ad215540f7f433fdde Reviewed-on: https://review.spdk.io/gerrit/c/spdk/dpdk/+/7079 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: Jim Harris <james.r.harris@intel.com>
- Loading branch information