packages/utils/smartmontools/patches/001-compile-fix.patch
pavlov 14c1a8db5f patch file cleanup... ick.. kaloz you owe me some love
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6526 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-05 01:34:12 +00:00

35 lines
1.7 KiB
Diff

diff -urN smartmontools-5.37/configure.in smartmontools-5.37.new/configure.in
--- smartmontools-5.37/configure.in 2006-12-20 21:39:25.000000000 +0100
+++ smartmontools-5.37.new/configure.in 2007-01-26 11:37:41.000000000 +0100
@@ -76,18 +76,18 @@
AC_CHECK_FUNCS([uname])
# Check whether snprintf appends null char and returns expected length on overflow
-AH_TEMPLATE(HAVE_WORKING_SNPRINTF, [Define to 1 if the `snprintf' function is sane])
-AC_MSG_CHECKING([for working snprintf])
-AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[ char buf[]="ABCDEFGHI";
- int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8); ]])],
- [libc_have_working_snprintf=yes],
- [libc_have_working_snprintf=no],
- [libc_have_working_snprintf=no])
-AC_SUBST(libc_have_working_snprintf)
-if test "$libc_have_working_snprintf" = "yes"; then
- AC_DEFINE(HAVE_WORKING_SNPRINTF)
-fi
-AC_MSG_RESULT([$libc_have_working_snprintf])
+#AH_TEMPLATE(HAVE_WORKING_SNPRINTF, [Define to 1 if the `snprintf' function is sane])
+#AC_MSG_CHECKING([for working snprintf])
+#AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[ char buf[]="ABCDEFGHI";
+# int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8); ]])],
+# [libc_have_working_snprintf=yes],
+# [libc_have_working_snprintf=no],
+# [libc_have_working_snprintf=no])
+#AC_SUBST(libc_have_working_snprintf)
+#if test "$libc_have_working_snprintf" = "yes"; then
+# AC_DEFINE(HAVE_WORKING_SNPRINTF)
+#fi
+#AC_MSG_RESULT([$libc_have_working_snprintf])
# check for __attribute__((packed))
AH_TEMPLATE(HAVE_ATTR_PACKED, [Define to 1 if C++ compiler supports __attribute__((packed))])