aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2006-01-07 16:25:28 +0000
committerNed Ludd <solar@gentoo.org>2006-01-07 16:25:28 +0000
commitfcbcba027a150a7774cec4cae37dcfc15dc17dce (patch)
treeafba302563e95f24bc20c0d743ac480327de4c46 /template.c
parent- update manpages (diff)
downloadportage-utils-fcbcba027a150a7774cec4cae37dcfc15dc17dce.tar.gz
portage-utils-fcbcba027a150a7774cec4cae37dcfc15dc17dce.tar.bz2
portage-utils-fcbcba027a150a7774cec4cae37dcfc15dc17dce.zip
- make some applets optional for embedded systems where one might not have a full PORTDIR=
Diffstat (limited to 'template.c')
-rw-r--r--template.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/template.c b/template.c
index 9fb51c29..7350a211 100644
--- a/template.c
+++ b/template.c
@@ -1,12 +1,14 @@
/*
* Copyright 2005-2006 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/template.c,v 1.7 2006/01/05 03:35:43 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/template.c,v 1.8 2006/01/07 16:25:28 solar Exp $
*
* Copyright 2005-2006 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org>
*/
+#ifdef APPLET_qtemp
+
#define QTEMP_FLAGS "" COMMON_FLAGS
static struct option const qtemp_long_opts[] = {
COMMON_LONG_OPTS
@@ -15,7 +17,7 @@ static const char *qtemp_opts_help[] = {
COMMON_OPTS_HELP
};
-static const char qtemp_rcsid[] = "$Id: template.c,v 1.7 2006/01/05 03:35:43 vapier Exp $";
+static const char qtemp_rcsid[] = "$Id: template.c,v 1.8 2006/01/07 16:25:28 solar Exp $";
#define qtemp_usage(ret) usage(ret, QTEMP_FLAGS, qtemp_long_opts, qtemp_opts_help, lookup_applet_idx("qtemp"))
@@ -36,3 +38,9 @@ int qtemp_main(int argc, char **argv)
return EXIT_SUCCESS;
}
+
+#else /* ! APPLET_qtemp */
+int qtemp_main(int argc, char **argv) {
+ errf("%s", err_noapplet);
+}
+#endif /* APPLET_qtemp */