summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>1998-04-25 05:06:22 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>1998-04-25 05:06:22 +0000
commit6ab4aad5ac1df1eb874c34310d43edd1717908cd (patch)
tree820d580b6bbeb9817cb8d77f71d00613a768f368 /usr.sbin/ppp
parent2f07491afa77fde593ba70a707331e7159f66051 (diff)
not that we compile this, but incase we ever do, prepare it to work for elf.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/loadalias.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ppp/loadalias.c b/usr.sbin/ppp/loadalias.c
index 0c3c8575cc3..4aeb4cbc132 100644
--- a/usr.sbin/ppp/loadalias.c
+++ b/usr.sbin/ppp/loadalias.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: loadalias.c,v 1.4 1998/01/19 22:59:14 brian Exp $
+ * $Id: loadalias.c,v 1.5 1998/04/25 05:06:21 todd Exp $
*/
#include <sys/param.h>
@@ -49,7 +49,11 @@
#define _PATH_ALIAS_PREFIX "/usr/lib/libalias.so.2."
#define off(item) ((int)&(((struct aliasHandlers *)0)->item))
+#if !(defined(__mips) || defined(__powerpc)) /* Any arch that is elf */
+#define entry(a) { off(a), #a }
+#else
#define entry(a) { off(a), "_" #a }
+#endif
#ifndef RTLD_NOW
#define RTLD_NOW 1 /* really RTLD_LAZY */