"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "slirp-1.0.16/cygwin.patch" of archive slirp-1.0.16.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) Diff $DESCRIPTION=Diff source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 --- /home/mike/slirp-1.0.14pre1/src/misc.c	Sat Sep  9 18:48:43 2000
    2  +++ misc.c	Wed Aug 14 01:00:58 2002
    3  @@ -227,10 +227,13 @@
    4   		return -1;
    5   	}
    6 
    7  -	if ((slave = open(ptr, O_RDWR)) < 0 ||
    8  -	    ioctl(slave, I_PUSH, "ptem") < 0 ||
    9  -	    ioctl(slave, I_PUSH, "ldterm") < 0 ||
   10  -	    ioctl(slave, I_PUSH, "ttcompat") < 0) {
   11  +	if ((slave = open(ptr, O_RDWR)) < 0
   12  +#ifdef I_PUSH
   13  +	    || ioctl(slave, I_PUSH, "ptem") < 0
   14  +	    || ioctl(slave, I_PUSH, "ldterm") < 0
   15  +	    || ioctl(slave, I_PUSH, "ttcompat") < 0
   16  +#endif
   17  +	   ) {
   18   		close(master);
   19   		close(slave);
   20   		return -1;
   21