summaryrefslogtreecommitdiff
path: root/sys-apps/clrngd/files/clrngd-1.0.3-implicit-func-declaration.patch
blob: 075866ec804476ccbb100eb655b63d2af98f9c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/clrngd.c
+++ b/clrngd.c
@@ -14,6 +14,13 @@
 #include <sys/time.h>
 #include <stdio.h>
 #include <string.h>
+
+#ifdef HAVE_STROPT_H
+#include <stropts.h>
+#else
+#include <sys/ioctl.h>
+#endif
+
 #include <linux/types.h>
 #include <linux/random.h>
 #include <errno.h>
--- a/configure.in
+++ b/configure.in
@@ -18,7 +18,7 @@ dnl Checks for libraries.
 
 dnl Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h sys/mkdev.h sys/sysmacros.h string.h memory.h fcntl.h dirent.h sys/ndir.h ndir.h alloca.h locale.h )
+AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h sys/mkdev.h sys/sysmacros.h string.h memory.h fcntl.h dirent.h sys/ndir.h ndir.h alloca.h locale.h stropts.h)
 
 jm_CHECK_TYPE_STRUCT_UTIMBUF
 AC_HEADER_MAJOR