diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-12-08 00:07:16 -0500 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-01-14 13:25:34 +0100 |
commit | 86f2543c8ce2467847d397f52f570f0480b2f2a7 (patch) | |
tree | b055bf14880b11ba22b4948a6e789cd9c200d1d3 /package/irda-utils/irda-utils-0.9.18-nommu.patch | |
parent | 921f75e2607e7f3d16b7ba8ee62ed68a3632eeb7 (diff) |
irda-utils: new package for IrDA devices
[Peter: Small tweaks, add patch descriptions]
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/irda-utils/irda-utils-0.9.18-nommu.patch')
-rw-r--r-- | package/irda-utils/irda-utils-0.9.18-nommu.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/irda-utils/irda-utils-0.9.18-nommu.patch b/package/irda-utils/irda-utils-0.9.18-nommu.patch new file mode 100644 index 000000000..bc76bd395 --- /dev/null +++ b/package/irda-utils/irda-utils-0.9.18-nommu.patch @@ -0,0 +1,24 @@ +written by Mike Frysinger + +https://sourceforge.net/tracker/?func=detail&aid=3132056&group_id=5616&atid=305616 + +nommu systems cannot fork() as the hardware cannot support +it. irattach uses it as a minor optimization, but it isnt +necessary for correct functioning of the utility. so add a +NO_FORK define so we nommu peeps can do CFLAGS="... -DNO_FORK=1 +..." and use it in our embedded systems. + +--- a/irattach/irattach.c ++++ b/irattach/irattach.c +@@ -397,7 +397,11 @@ + after_names[i]); + /* Create a new instance for this other + * interface */ ++#ifdef NO_FORK ++ pid = -1; ++#else + pid = fork(); ++#endif + /* If in the child */ + if(!pid) { + /* Get the interface name */ |