freebsd-ports/x11-toolkits/lesstif/files/patch-ar
Maxim Sobolev c113d99616 Update to 0.91.8. Other improvements:
- make it USE_LIBTOOL;
- sort PLIST;
- fix configure's sprintf test segfault.
2000-09-01 09:19:00 +00:00

12 lines
516 B
Plaintext

--- aclocal.m4.orig Thu Aug 31 12:06:58 2000
+++ aclocal.m4 Fri Sep 1 10:42:51 2000
@@ -283,7 +283,7 @@
AC_DEFUN(AM_FUNC_VOID_SPRINTF,
[AC_CACHE_CHECK(whether sprintf returns void, ac_cv_func_void_sprintf,
[AC_TRY_RUN([#include <stdio.h>
-int sprintf(); main() { exit(sprintf(".")); }],
+int sprintf(); main() { char c; exit(sprintf(&c, "")); }],
ac_cv_func_void_sprintf=no, ac_cv_func_void_sprintf=yes, ac_cv_func_void_sprintf=yes)])
if test $ac_cv_func_void_sprintf = no; then
AC_DEFINE(VOID_SPRINTF,1,