mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-22 02:04:22 +03:00
* 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:
parent
a714cef98e
commit
d8ec86292f
@ -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
|
||||
|
11
vfs/local.c
11
vfs/local.c
@ -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 *
|
||||
|
Loading…
x
Reference in New Issue
Block a user