Page MenuHomeFreeBSD

libsa/netif.c: Replace #if with #ifdef
ClosedPublic

Authored by mig_semihalf.com on Sep 27 2022, 1:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 26 2024, 2:03 PM
Unknown Object (File)
Nov 22 2024, 11:30 AM
Unknown Object (File)
Nov 21 2024, 2:39 PM
Unknown Object (File)
Nov 4 2024, 8:24 PM
Unknown Object (File)
Oct 16 2024, 2:44 PM
Unknown Object (File)
Oct 16 2024, 2:43 PM
Unknown Object (File)
Oct 16 2024, 2:43 PM
Unknown Object (File)
Oct 16 2024, 2:10 PM
Subscribers

Details

Summary

Follow the convention with *_DEBUG macros in stand/libsa/* and
replace #if with #ifdef.

Test Plan

In stand/libsa/netif.c after all #include's add:
#define NETIF_DEBUG
temporary directory to hold compilation files:
mkdir -p $HOME/obj
set appropriate environmental variables, e.g. ARCH=arm64, TARGET_ARCH=aarch64, MAKEOBJDIRPREFIX=$HOME/obj.
In stand/libsa:
sudo -E make buildenv
make
compilation ends with error.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable