X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Frmt.h;h=2155223954c3d6f6e6fe52cae48af77003384eba;hb=26aaccb0e954970d22da4dc9ef5d5b5c4f27c260;hp=6260c0855ecf1bf904f3369e58904b25360fcda8;hpb=8699641bb3fea97189a44e290667b45b4ab7a5a2;p=chaz%2Ftar diff --git a/src/rmt.h b/src/rmt.h index 6260c08..2155223 100644 --- a/src/rmt.h +++ b/src/rmt.h @@ -23,7 +23,7 @@ #ifdef __MSDOS__ #include #else /* !__MSDOS__ */ -extern off_t lseek(); +extern off_t lseek (); #endif /* __MSDOS__ */ #endif /* _POSIX_VERSION */ @@ -55,11 +55,13 @@ extern off_t lseek(); extern char *__rmt_path; -#if defined(USG) || defined(STDC_HEADERS) +#if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include +#ifndef index #define index strchr +#endif #else -extern char *index(); +extern char *index (); #endif #define _remdev(path) (!f_force_local && (__rmt_path=index(path, ':'))) @@ -91,6 +93,6 @@ int __rmt_open (); int __rmt_close (); int __rmt_read (); int __rmt_write (); -long __rmt_lseek(); +long __rmt_lseek (); int __rmt_ioctl (); #endif /* !NO_REMOTE */