summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1004-detect-fork-support.patch
diff options
context:
space:
mode:
authorZhenhua Luo <b19537@freescale.com>2011-12-21 06:01:40 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-12-22 08:49:16 +0100
commit8b08e151645d19d2940b6f83c7626087f4ac874f (patch)
treebe2e1eca239868bb7860e565301a424363a37f84 /meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1004-detect-fork-support.patch
parent7fa09da36cf9711f9fcfee04380682b9abc526fa (diff)
downloadmeta-openembedded-8b08e151645d19d2940b6f83c7626087f4ac874f.tar.gz
ietutils: add version 1.0
The GNU inetutils are a collection of common networking utilities and servers including ftp, ftpd, rcp, rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, talkd, telnet, telnetd, tftp, tftpd, and uucpd. Signed-off-by: Zhenhua Luo <b19537@freescale.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1004-detect-fork-support.patch')
-rw-r--r--meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1004-detect-fork-support.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1004-detect-fork-support.patch b/meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1004-detect-fork-support.patch
new file mode 100644
index 0000000000..fc9d72670c
--- /dev/null
+++ b/meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1004-detect-fork-support.patch
@@ -0,0 +1,54 @@
1From 0acaed0d4b2bf9495e71ec4c898733bed2a86be0 Mon Sep 17 00:00:00 2001
2From: Mike Frysinger <vapier at gentoo.org>
3Date: Thu, 18 Nov 2010 22:27:55 -0500
4Subject: [PATCH] detect fork() support
5
6Linux/nommu systems cannot support a fork(), so add a configure test for
7it so apps can pick that or vfork().
8
9Signed-off-by: Mike Frysinger <vapier at gentoo.org>
10---
11 configure.ac | 2 +-
12 libinetutils/libinetutils.h | 9 +++++++++
13 2 files changed, 10 insertions(+), 1 deletions(-)
14
15diff --git a/configure.ac b/configure.ac
16index 25cc3db..98196f4 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -580,7 +580,7 @@ AC_FUNC_MALLOC
20 AC_FUNC_REALLOC
21
22 AC_CHECK_FUNCS(bcopy bcmp bzero cfsetspeed cgetent daemon dirfd fchdir flock \
23- fpathconf ftruncate \
24+ fork fpathconf ftruncate \
25 getcwd getmsg getspnam initgroups initsetproctitle killpg \
26 mkstemp ptsname \
27 setegid seteuid setpgid \
28diff --git a/libinetutils/libinetutils.h b/libinetutils/libinetutils.h
29index 19bbde5..86365b0 100644
30--- a/libinetutils/libinetutils.h
31+++ b/libinetutils/libinetutils.h
32@@ -17,6 +17,8 @@
33 You should have received a copy of the GNU General Public License
34 along with this program. If not, see `http://www.gnu.org/licenses/'. */
35
36+#include <config.h>
37+
38 #include "argp-version-etc.h"
39
40 void utmp_init (char *line, char *user, char *id);
41@@ -32,3 +34,10 @@ extern const char *default_program_authors[];
42 #define iu_argp_init(name, authors) \
43 argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; \
44 argp_version_setup (name, authors);
45+
46+#ifdef HAVE_FORK
47+# define fork_exit(s) exit(s)
48+#else
49+# define fork() vfork()
50+# define fork_exit(s) _exit(s)
51+#endif
52--
531.7.3.2
54