blob: 0ffe6dd926060f57be5bd6bfaee0f932864dcb9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
stdio needed for sscanf(), stdlib is included by smi.h but let's include it
anyway for exit().
--- a/libsmi.m4
+++ b/libsmi.m4
@@ -12,7 +12,10 @@ AC_DEFUN([AM_PATH_LIBSMI],
AC_MSG_CHECKING([whether to enable libsmi])
AC_TRY_RUN([ /* libsmi available check */
#include <smi.h>
-main()
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+int main(void)
{
int current, revision, age, n;
const int required = 2;
|