Notes on portability, and on when #include <linux/blah> is appropriate.
[oweals/busybox.git] / patches / tftp_timeout_multicast.diff
index 0f09d4a04846f076ffeb8b0f2122d459e3e06ef7..ca431fc60370f9c458b3eeb6213e70187075a051 100644 (file)
@@ -1031,7 +1031,7 @@ diff -u -r1.25 tftp.c
 +      result = tftp(cmd, host, remotefile, fd, port, &option);
 
  #ifdef CONFIG_FEATURE_CLEAN_UP
-       if (!(fd == fileno(stdout) || fd == fileno(stdin))) {
+       if (!(fd == STDOUT_FILENO || fd == STDIN_FILENO)) {
 @@ -582,3 +980,18 @@
  #endif
        return(result);