summaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorPierre-Jean Texier <texier.pj2@gmail.com>2021-03-13 16:04:16 +0100
committerPierre-Jean Texier <texier.pj2@gmail.com>2021-03-13 16:13:57 +0100
commit03679ae850645772217e0f924cd5a33b1245ef5f (patch)
treeb6870dd3f4f5ad3f7f5ab08afd5192f543dd5a92 /config.h.in
parentAdded dracut conf file which can be placed in /etc/dracut.conf.d/haveged.conf (diff)
downloadhaveged-03679ae850645772217e0f924cd5a33b1245ef5f.tar.xz
haveged-03679ae850645772217e0f924cd5a33b1245ef5f.zip
haveged: fix build on uclibc
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 <sys/auxv.h> | ^~~~~~~~~~~~ compilation terminée. Closes: #56 Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
1 files changed, 6 insertions, 0 deletions
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 <syslog.h> header file. */
#undef HAVE_SYSLOG_H
+/* Define to 1 if you have the <sys/auxv.h> header file. */
+#undef HAVE_SYS_AUXV_H
+
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H