* local.c (local_telldir): Warn and abort if telldir() is not

available.
(local_seekdir): Warn and abort if seekdir() is not available.
This commit is contained in:
Pavel Roskin 2001-06-19 19:36:54 +00:00
parent a714cef98e
commit d8ec86292f
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-06-19 Pavel Roskin <proski@gnu.org>
* local.c (local_telldir): Warn and abort if telldir() is not
available.
(local_seekdir): Warn and abort if seekdir() is not available.
2001-06-18 Pavel Roskin <proski@gnu.org>
* tcputil.c (sig_pipe): Use the same declaration with one int

View File

@ -91,13 +91,24 @@ local_opendir (vfs *me, char *dirname)
static int
local_telldir (void *data)
{
#ifdef HAVE_TELLDIR
return telldir( *(DIR **) data );
#else
#warning "Native telldir() not available, emulation not implemented"
abort();
return 0; /* for dumb compilers */
#endif /* !HAVE_TELLDIR */
}
static void
local_seekdir (void *data, int offset)
{
#ifdef HAVE_SEEKDIR
seekdir( *(DIR **) data, offset );
#else
#warning "Native seekdir() not available, emulation not implemented"
abort();
#endif /* !HAVE_SEEKDIR */
}
static void *