0002-nommu.patch 698 B

123456789101112131415161718192021222324
  1. written by Mike Frysinger
  2. https://sourceforge.net/tracker/?func=detail&aid=3132056&group_id=5616&atid=305616
  3. nommu systems cannot fork() as the hardware cannot support
  4. it. irattach uses it as a minor optimization, but it isnt
  5. necessary for correct functioning of the utility. so add a
  6. NO_FORK define so we nommu peeps can do CFLAGS="... -DNO_FORK=1
  7. ..." and use it in our embedded systems.
  8. --- a/irattach/irattach.c
  9. +++ b/irattach/irattach.c
  10. @@ -397,7 +397,11 @@
  11. after_names[i]);
  12. /* Create a new instance for this other
  13. * interface */
  14. +#ifdef NO_FORK
  15. + pid = -1;
  16. +#else
  17. pid = fork();
  18. +#endif
  19. /* If in the child */
  20. if(!pid) {
  21. /* Get the interface name */