X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=wls_lib%2Ftestapp%2Ftestapp.c;h=e80307c5f79076bc0625555ef77314b6c9278ed9;hp=1bd9a84e1d1620b13f40c88d166dc6c388a69e18;hb=601bdead8ae15a0c7ca5dee02675808b51477269;hpb=62f80e30407337464c28193f44a5b09521a6def9 diff --git a/wls_lib/testapp/testapp.c b/wls_lib/testapp/testapp.c index 1bd9a84..e80307c 100644 --- a/wls_lib/testapp/testapp.c +++ b/wls_lib/testapp/testapp.c @@ -22,7 +22,10 @@ * supported by WLS interface) */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif + #include // for printf #include // for memset #include // for SIGINT @@ -1418,14 +1421,12 @@ int main(int argc, char* argv[]) memset(&AppContext, 0, sizeof (AppContext)); memset(¶ms, 0, sizeof (params)); -#ifdef DPDK_WLS int ret = rte_eal_init(argc, argv); if (ret < 0) rte_exit(EXIT_FAILURE, "Error with EAL initialization\n"); argc -= ret; argv += ret; -#endif app_ParseArgs(argc, argv, ¶ms); app_ApplyParams(¶ms);