HAVE_NETWORKING compilation flag not working

I’m compiling retroarch 1.7.8 for arm linux with --disable-networking option to disable networking that is not supported in my board, the problem is that even using that option (or changing HAVE_NETWORKING to “no” in the config.params.sh directly), the network code is compiled anyway, the directives #ifdef HAVE_NETWORKING in the code are not respected. This option worked correctly until the 1.7.7 version. Could someone help me please.