diff options
author | 2000-01-06 09:02:34 +0000 | |
---|---|---|
committer | 2000-01-06 09:02:34 +0000 | |
commit | 88fc12f6d9a924d9b0904d028efdc8ded3eea1c0 (patch) | |
tree | 07245d147ddbe83ed3e36dcdec4a9d6b936e62e0 | |
parent | oops (diff) | |
download | wireguard-openbsd-88fc12f6d9a924d9b0904d028efdc8ded3eea1c0.tar.xz wireguard-openbsd-88fc12f6d9a924d9b0904d028efdc8ded3eea1c0.zip |
add __weak_alias() macro
-rw-r--r-- | sys/arch/i386/include/cdefs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/i386/include/cdefs.h b/sys/arch/i386/include/cdefs.h index 56e5ba6f146..05a765f283d 100644 --- a/sys/arch/i386/include/cdefs.h +++ b/sys/arch/i386/include/cdefs.h @@ -36,4 +36,8 @@ #define __warn_references(sym,msg) /* nothing */ #endif +#define __weak_alias(alias,sym) \ + __asm__(".weak " _C_LABEL(alias) ";" \ + _C_LABEL(alias) "=" _C_LABEL(sym)) + #endif /* !_MACHINE_CDEFS_H_ */ |