openat: test for fstatat (..., 0) bug
[gnulib.git] / m4 / ftruncate.m4
index 50e8678..c3c3342 100644 (file)
@@ -1,8 +1,8 @@
-# serial 15
+# serial 16
 
 # See if we need to emulate a missing ftruncate function using fcntl or chsize.
 
-# Copyright (C) 2000-2001, 2003-2007, 2009-2010 Free Software Foundation, Inc.
+# Copyright (C) 2000-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -21,8 +21,6 @@ AC_DEFUN([gl_FUNC_FTRUNCATE],
   AC_CHECK_FUNCS_ONCE([ftruncate])
   if test $ac_cv_func_ftruncate = no; then
     HAVE_FTRUNCATE=0
-    AC_LIBOBJ([ftruncate])
-    gl_PREREQ_FTRUNCATE
     case "$host_os" in
       mingw*)
         # Yes, we know mingw lacks ftruncate.