git: 487fcaf8e9b7 - stable/12 - random_fortuna, random_other: unbreak standalone module build

From: Eugene Grosbein <eugen_at_FreeBSD.org>
Date: Tue, 03 May 2022 20:28:56 UTC
The branch stable/12 has been updated by eugen:

URL: https://cgit.FreeBSD.org/src/commit/?id=487fcaf8e9b7b7faabdbcbf0293ed09d1de95889

commit 487fcaf8e9b7b7faabdbcbf0293ed09d1de95889
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2022-05-03 20:23:22 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2022-05-03 20:28:49 +0000

    random_fortuna, random_other: unbreak standalone module build
    
    This is direct commit to stable/12 as newer branches
    do not have the problem.
    
    PR:             263750
    Reviewed by:    emaste
    Tested by:      Julian H. Stacey <jhs at berklix.com>
---
 sys/modules/random_fortuna/Makefile | 2 +-
 sys/modules/random_other/Makefile   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/modules/random_fortuna/Makefile b/sys/modules/random_fortuna/Makefile
index e1290eb32f46..ce88979eb7d0 100644
--- a/sys/modules/random_fortuna/Makefile
+++ b/sys/modules/random_fortuna/Makefile
@@ -6,6 +6,6 @@ KMOD	= random_fortuna
 SRCS	= randomdev.c hash.c fortuna.c
 SRCS	+= opt_param.h bus_if.h device_if.h
 SRCS	+= opt_ddb.h
-CFLAGS	+= -DRANDOM_LOADABLE
+CFLAGS	+= -DDEV_RANDOM -DRANDOM_LOADABLE
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/random_other/Makefile b/sys/modules/random_other/Makefile
index 14a0051efef8..1467b4e02918 100644
--- a/sys/modules/random_other/Makefile
+++ b/sys/modules/random_other/Makefile
@@ -6,6 +6,6 @@ KMOD	= random_OTHER
 SRCS	= randomdev.c hash.c other_algorithm.c
 SRCS	+= opt_param.h bus_if.h device_if.h
 SRCS	+= opt_ddb.h
-CFLAGS	+= -DRANDOM_LOADABLE
+CFLAGS	+= -DDEV_RANDOM -DRANDOM_LOADABLE
 
 .include <bsd.kmod.mk>