diff options
Diffstat (limited to 'src/haveged.c')
-rw-r--r-- | src/haveged.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/haveged.c b/src/haveged.c index b9cb77b..1c22b3b 100644 --- a/src/haveged.c +++ b/src/haveged.c @@ -19,7 +19,9 @@ ** along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" +#ifdef HAVE_SYS_AUXV_H #include <sys/auxv.h> +#endif #include <stdlib.h> #include <stdio.h> #include <getopt.h> @@ -135,8 +137,10 @@ int main(int argc, char **argv) { volatile char *path = strdup(argv[0]); volatile char *arg0 = argv[0]; +#ifdef HAVE_GETAUXVAL if (path[0] != '/') path = (char*)getauxval(AT_EXECFN); +#endif static const char* cmds[] = { "b", "buffer", "1", SETTINGR("Buffer size [KW], default: ",COLLECT_BUFSIZE), "d", "data", "1", SETTINGR("Data cache size [KB], with fallback to: ", GENERIC_DCACHE ), |