develooper Front page | perl.perl5.porters | Postings from July 2011

Perl, NetWare - HAS_FSTAT not defined anywhere

Thread Next
From:
NormW
Date:
July 20, 2011 03:39
Subject:
Perl, NetWare - HAS_FSTAT not defined anywhere
Message ID:
4E26B030.8080209@gknw.net
Hi,
Trying Perl 5.12.4 for NetWare and in .\dist\IO\poll.c

>     if(err < 0) {
> #ifdef HAS_FSTAT
> 	if(errno == EBADF) {
> 	    for(i = 0 ; i < nfds ; i++) {
> 		struct stat buf;
> 		if((fstat(fds[i].fd,&buf) < 0) && (errno == EBADF)) {
> 		    FD_SET(fds[i].fd, &ifd);
> 		    goto again;
> 		}
> 	    }
> 	}
> #endif /* HAS_FSTAT */

AFAICT HAS_FSTAT is not defined anywhere and NetWare has (config.h has a 
few similar defines); adding the define to the Makefile that builds 
IO.nlm removes warning about label 'again' not being referenced.

HTH,
Norm

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About