1
1

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

available.
(local_seekdir): Warn and abort if seekdir() is not available.
Этот коммит содержится в:
Pavel Roskin 2001-06-19 19:36:54 +00:00
родитель a714cef98e
Коммит d8ec86292f
2 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -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> 2001-06-18 Pavel Roskin <proski@gnu.org>
* tcputil.c (sig_pipe): Use the same declaration with one int * tcputil.c (sig_pipe): Use the same declaration with one int

Просмотреть файл

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