mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
23 lines
723 B
Plaintext
23 lines
723 B
Plaintext
|
*** ctrldisk.c.orig Fri Feb 20 00:37:18 1998
|
||
|
--- ctrldisk.c Fri Feb 20 00:38:56 1998
|
||
|
***************
|
||
|
*** 157,164 ****
|
||
|
int nbytes;
|
||
|
char *filename; /* [i]: name of file being accessed */
|
||
|
{
|
||
|
long lseek(); /* type not declared in <sys/file.h> */
|
||
|
!
|
||
|
if( lseek(fd, (long)nbytes, L_SET) < 0 ) {
|
||
|
perror("lseek");
|
||
|
(void)fprintf(stderr, "Can't lseek %d bytes", nbytes);
|
||
|
--- 157,165 ----
|
||
|
int nbytes;
|
||
|
char *filename; /* [i]: name of file being accessed */
|
||
|
{
|
||
|
+ #ifndef __FreeBSD__
|
||
|
long lseek(); /* type not declared in <sys/file.h> */
|
||
|
! #endif
|
||
|
if( lseek(fd, (long)nbytes, L_SET) < 0 ) {
|
||
|
perror("lseek");
|
||
|
(void)fprintf(stderr, "Can't lseek %d bytes", nbytes);
|