1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/astro/saoimage/files/patch-ad
Matthew Hunt 90dca13aaa Import of saoimage, a viewer for FITS files (which are used in
professional astronomy).
PR:		5805
Submitted by:	giffunip@asme.org
1998-04-17 21:27:32 +00:00

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);