diff src/c-file-ptr-stream.cc @ 12941:9a498efac5f1 stable

use gnulib::fseek and gnulib::fopen * file-io.cc (do_stream_open): Use gnulib::fopen instead of fopen. * input.cc (get_input_from_file): Likewise. * c-file-ptr-stream.h (c_file_ptr_buf::seek): Use gnulib::fseek instead of fseek. * bootstrap.conf (gnulib_modules): Include fopen, fflush, fseek, and ftell in the list.
author John W. Eaton <jwe@octave.org>
date Tue, 09 Aug 2011 22:16:06 -0400
parents f9c1f7c1ead0
children 72c96de7a403
line wrap: on
line diff
--- a/src/c-file-ptr-stream.cc
+++ b/src/c-file-ptr-stream.cc
@@ -195,9 +195,7 @@
 int
 c_file_ptr_buf::seek (long offset, int origin)
 {
-  // gnulib::fseek doesn't seem to work, so don't use it until problem
-  // can be properly diagnosed and fixed.
-  return f ? fseek (f, offset, origin) : -1;
+  return f ? gnulib::fseek (f, offset, origin) : -1;
 }
 
 long