diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-12-06 11:19:37 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-12-06 11:19:37 +0000 |
| commit | 44e09d2fa2a11289f7eb5372f0da2bf69c48fdb7 (patch) | |
| tree | d4aab888a37abefaa2332f515bb2be9862352b91 /sys/dev/snc | |
| parent | bbce982bd545f98fe57f052416788da9912e2b55 (diff) | |
Notes
Diffstat (limited to 'sys/dev/snc')
| -rw-r--r-- | sys/dev/snc/dp83932.c | 6 | ||||
| -rw-r--r-- | sys/dev/snc/dp83932var.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c index ce7c920a0090..e6c0dd64314a 100644 --- a/sys/dev/snc/dp83932.c +++ b/sys/dev/snc/dp83932.c @@ -70,7 +70,7 @@ #include <sys/socket.h> #include <sys/syslog.h> #include <sys/errno.h> -#if NRND > 0 +#if defined(NRND) && NRND > 0 #include <sys/rnd.h> #endif @@ -202,7 +202,7 @@ sncconfig(sc, media, nmedia, defmedia, myea) ether_ifattach(ifp, myea); -#if NRND > 0 +#if defined(NRND) && NRND > 0 rnd_attach_source(&sc->rnd_source, device_get_nameunit(sc->sc_dev), RND_TYPE_NET, 0); #endif @@ -890,7 +890,7 @@ sncintr(arg) } sncstart(sc->sc_ifp); -#if NRND > 0 +#if defined(NRND) && NRND > 0 if (isr) rnd_add_uint32(&sc->rnd_source, isr); #endif diff --git a/sys/dev/snc/dp83932var.h b/sys/dev/snc/dp83932var.h index 9570162ed8cc..59ffefbd5a2c 100644 --- a/sys/dev/snc/dp83932var.h +++ b/sys/dev/snc/dp83932var.h @@ -226,7 +226,7 @@ typedef struct snc_softc { void *sc_sh; /* shutdownhook cookie */ int gone; -#if NRND > 0 +#if defined(NRND) && NRND > 0 rndsource_element_t rnd_source; #endif } snc_softc_t; |
