From 03679ae850645772217e0f924cd5a33b1245ef5f Mon Sep 17 00:00:00 2001 From: Pierre-Jean Texier Date: Sat, 13 Mar 2021 16:04:16 +0100 Subject: haveged: fix build on uclibc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check for HAVE_GETAUXVAL or HAVE_SYS_AUXV_H before using getauxval to avoid a build failure on uclibc Fixes: /bin/bash ../libtool --tag=CC --mode=compile /home/pjtexier/Bureau/buildroot/pj/bootlin-armv5-uclibc/host/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wpedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c -o libhavege_la-havege.lo `test -f 'havege.c' || echo './'`havege.c /bin/bash ../libtool --tag=CC --mode=compile /home/pjtexier/Bureau/buildroot/pj/bootlin-armv5-uclibc/host/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wpedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c -o libhavege_la-havegetune.lo `test -f 'havegetune.c' || echo './'`havegetune.c /bin/bash ../libtool --tag=CC --mode=compile /home/pjtexier/Bureau/buildroot/pj/bootlin-armv5-uclibc/host/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wpedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c -o libhavege_la-havegecollect.lo `test -f 'havegecollect.c' || echo './'`havegecollect.c /bin/bash ../libtool --tag=CC --mode=compile /home/pjtexier/Bureau/buildroot/pj/bootlin-armv5-uclibc/host/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wpedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c -o libhavege_la-havegetest.lo `test -f 'havegetest.c' || echo './'`havegetest.c haveged.c:22:10: erreur fatale: sys/auxv.h : Aucun fichier ou dossier de ce type 22 | #include | ^~~~~~~~~~~~ compilation terminée. Closes: #56 Signed-off-by: Pierre-Jean Texier --- config.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index d0882ea..08e36e1 100644 --- a/config.h.in +++ b/config.h.in @@ -33,6 +33,9 @@ /* Define to 1 if you have the `floor' function. */ #undef HAVE_FLOOR +/* Define to 1 if you have the `getauxval' function. */ +#undef HAVE_GETAUXVAL + /* Define to 1 if you have the `getsockopt' function. */ #undef HAVE_GETSOCKOPT @@ -138,6 +141,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYSLOG_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_AUXV_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H -- cgit v1.2.3