2010-03-05 16:31:33 +01:00
|
|
|
More compiler warning fixes
|
|
|
|
|
|
|
|
These were in SUSE distris for quite some time and got
|
|
|
|
forwardported from 1.8.10 to 1.8.11.
|
|
|
|
|
|
|
|
|
2008-10-14 19:04:59 +02:00
|
|
|
Index: lib/ipmi_sdradd.c
|
|
|
|
===================================================================
|
|
|
|
--- lib/ipmi_sdradd.c.orig 2007-07-11 16:27:46.000000000 +0200
|
|
|
|
+++ lib/ipmi_sdradd.c 2008-10-14 17:51:50.000000000 +0200
|
|
|
|
@@ -38,6 +38,7 @@
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
+#include <unistd.h>
|
|
|
|
|
|
|
|
#include <ipmitool/helper.h>
|
|
|
|
#include <ipmitool/log.h>
|
|
|
|
Index: lib/ipmi_hpmfwupg.c
|
|
|
|
===================================================================
|
|
|
|
--- lib/ipmi_hpmfwupg.c.orig 2008-10-14 17:50:09.000000000 +0200
|
|
|
|
+++ lib/ipmi_hpmfwupg.c 2008-10-14 18:06:44.000000000 +0200
|
|
|
|
@@ -40,6 +40,8 @@
|
|
|
|
#include "../src/plugins/lan/md5.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <time.h>
|
|
|
|
+#include <ctype.h>
|
|
|
|
+#include <unistd.h>
|
|
|
|
|
|
|
|
#if HAVE_CONFIG_H
|
|
|
|
#include <config.h>
|
|
|
|
Index: configure.in
|
|
|
|
===================================================================
|
|
|
|
--- configure.in.orig 2008-08-07 20:26:08.000000000 +0200
|
|
|
|
+++ configure.in 2008-10-14 18:12:43.000000000 +0200
|
|
|
|
@@ -25,6 +25,7 @@ AC_CHECK_HEADERS([sys/byteorder.h bytesw
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
+AC_GNU_SOURCE
|
|
|
|
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_SELECT_ARGTYPES
|