diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-26 02:32:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-26 02:32:04 +0000 |
commit | 6cb8d659c3aef61c2dd237f99bf2e1d40a443b6b (patch) | |
tree | 56c670207771cc26c4f9fce8cf72872f0da3e7d9 /applets.h | |
parent | use NULL when dealing with pointers, not 0 (diff) | |
download | portage-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |