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;fp=wls_lib%2Ftestapp%2Ftestapp.c;h=e80307c5f79076bc0625555ef77314b6c9278ed9;hp=1bd9a84e1d1620b13f40c88d166dc6c388a69e18;hb=607bc01527a8cec5c0afabcb8ba6a4f16338877c;hpb=d3aa1ac58a0b3fbe279790f7d14827a84a56d8e0 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);