From 81659b1df185f8e269319fe903042b0a6bd11372 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 13 Feb 2006 07:42:06 +0000 Subject: Don't compile arc4random if option not set --- libc/stdlib/Makefile.in | 5 ++++- libc/stdlib/arc4random.c | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/Makefile.in b/libc/stdlib/Makefile.in index 26bc78201..d8983389d 100644 --- a/libc/stdlib/Makefile.in +++ b/libc/stdlib/Makefile.in @@ -62,7 +62,10 @@ CSRC:= \ getpt.c ptsname.c grantpt.c unlockpt.c gcvt.c drand48-iter.c jrand48.c \ jrand48_r.c lrand48.c lrand48_r.c mrand48.c mrand48_r.c nrand48.c \ nrand48_r.c rand_r.c srand48.c srand48_r.c seed48.c seed48_r.c \ - valloc.c posix_memalign.c a64l.c l64a.c arc4random.c + valloc.c posix_memalign.c a64l.c l64a.c +ifeq ($(UCLIBC_HAS_ARC4RANDOM),y) +CSRC+=arc4random.c +endif ifeq ($(UCLIBC_HAS_LFS),y) CSRC+=mkstemp64.c endif diff --git a/libc/stdlib/arc4random.c b/libc/stdlib/arc4random.c index 1c785a385..836b79f6c 100644 --- a/libc/stdlib/arc4random.c +++ b/libc/stdlib/arc4random.c @@ -27,8 +27,6 @@ */ #include -#ifdef __UCLIBC_HAS_ARC4RANDOM__ - #include #include #include @@ -210,5 +208,3 @@ int main(void) { return 0; } #endif - -#endif /* __UCLIBC_HAS_ARC4RANDOM__ */ -- cgit v1.2.3