summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-01-22 14:52:56 +0000
committerart <art@openbsd.org>2001-01-22 14:52:56 +0000
commit954e980bd414798d3788935ffddfb1737bcc56c2 (patch)
tree802c849e28b7c0402f92386f9e55b97904219448
parentDefine ARCH_ELFSIZE that is the default elf size on this arch. (diff)
downloadwireguard-openbsd-954e980bd414798d3788935ffddfb1737bcc56c2.tar.xz
wireguard-openbsd-954e980bd414798d3788935ffddfb1737bcc56c2.zip
If ELFSIZE isn't explicitly defined, define it do ARCH_ELFSIZE
-rw-r--r--sys/sys/exec_elf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h
index 353e7dca7f1..c74edfd8fc9 100644
--- a/sys/sys/exec_elf.h
+++ b/sys/sys/exec_elf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.h,v 1.24 2001/01/21 17:09:21 art Exp $ */
+/* $OpenBSD: exec_elf.h,v 1.25 2001/01/22 14:52:56 art Exp $ */
/*
* Copyright (c) 1995, 1996 Erik Theisen. All rights reserved.
*
@@ -493,6 +493,10 @@ struct elf_args {
#endif
+#if !defined(ELFSIZE) && defined(ARCH_ELFSIZE)
+#define ELFSIZE ARCH_ELFSIZE
+#endif
+
#if defined(ELFSIZE)
#define CONCAT(x,y) __CONCAT(x,y)
#define ELFNAME(x) CONCAT(elf,CONCAT(ELFSIZE,CONCAT(_,x)))