aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-26 02:32:04 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-26 02:32:04 +0000
commit6cb8d659c3aef61c2dd237f99bf2e1d40a443b6b (patch)
tree56c670207771cc26c4f9fce8cf72872f0da3e7d9 /applets.h
parentuse NULL when dealing with pointers, not 0 (diff)
downloadportage-utils-6cb8d659c3aef61c2dd237f99bf2e1d40a443b6b.tar.gz
portage-utils-6cb8d659c3aef61c2dd237f99bf2e1d40a443b6b.tar.bz2
portage-utils-6cb8d659c3aef61c2dd237f99bf2e1d40a443b6b.zip
define stub functions for now since the weak handling is broken when building as a PIE
Diffstat (limited to 'applets.h')
-rw-r--r--applets.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/applets.h b/applets.h
index 7d8adedf..f5679192 100644
--- a/applets.h
+++ b/applets.h
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2006 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/applets.h,v 1.14 2006/01/25 01:51:42 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/applets.h,v 1.15 2006/01/26 02:32:04 vapier Exp $
*
* Copyright 2005-2006 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org>
@@ -33,6 +33,11 @@ DECLARE_APPLET(qmerge) /* disable */
DECLARE_APPLET(qglsa) /* disable */
#undef DECLARE_APPLET
+#define DEFINE_APPLET_STUB(applet) \
+ int applet##_main(int argc, char **argv) { \
+ err("Sorry, this applet has been disabled"); \
+ }
+
struct applet_t {
const char *name;
APPLET func;