Björn Martensen wrote:
>>cc1: warnings being treated as errors
>>tdb.c: In function 'tdb_write':
>>tdb.c:398: warning: implicit declaration of function 'pwrite'
>>tdb.c: In function 'tdb_read':
>>tdb.c:421: warning: implicit declaration of function 'pread'
>>make[2]: *** [tdb.lo] Error 1
>>make[2]: Leaving directory `/home/baze/pkgs/thunar-svn/src/thunar/tdb'
>>make[1]: *** [all-recursive] Error 1
>>make[1]: Leaving directory `/home/baze/pkgs/thunar-svn/src/thunar'
>>make: *** [all] Error 2
>
> Your configure.in.in patch didn't work.
> I had forgotten about that and thought I had the latest svn. sorry for that.
Ok, next one. ;-)
> Björn
Benedikt
Index: configure.in.in
===================================================================
--- configure.in.in (revision 22545)
+++ configure.in.in (working copy)
@@ -128,9 +128,15 @@
posix_madvise (0, 0, POSIX_MADV_RANDOM);
posix_madvise (0, 0, POSIX_MADV_WILLNEED);
posix_madvise (0, 0, POSIX_MADV_DONTNEED);
+pwrite (0, 0, 0, 0);
+pread (0, 0, 0, 0);
strptime (0, 0, 0);
dirfd (0);
])
+if test x"$GCC" = x"yes"; then
+ ac_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -Werror"
+fi
AC_MSG_CHECKING([whether we need _BSD_SOURCE and _XOPEN_SOURCE])
AC_TRY_LINK([#include <sys/types.h>
#include <sys/mman.h>
@@ -155,6 +161,9 @@
AC_MSG_RESULT([no])
])
])
+if test x"$GCC" = x"yes"; then
+ CFLAGS="$ac_save_CFLAGS"
+fi
dnl ******************************
dnl *** Check for i18n support ***
_______________________________________________
Thunar-dev mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/thunar-dev