From 6759f143ed914009dcd03a0d8d45e763ef122868 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Fri, 17 Jul 2015 22:08:28 -0600 Subject: [PATCH] add cdefs shim for defining __weak_alias on platforms without it --- include/Makefile.am | 1 + include/sys/cdefs.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 include/sys/cdefs.h diff --git a/include/Makefile.am b/include/Makefile.am index ee251f7..30423c4 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,6 +1,7 @@ noinst_HEADERS = noinst_HEADERS += signal.h noinst_HEADERS += unistd.h +noinst_HEADERS += sys/cdefs.h noinst_HEADERS += sys/queue.h noinst_HEADERS += sys/socket.h noinst_HEADERS += sys/types.h diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h new file mode 100644 index 0000000..77ff9a5 --- /dev/null +++ b/include/sys/cdefs.h @@ -0,0 +1,14 @@ +/* + * Public domain + * sys/cdefs.h compatibility shim + */ + +#include_next + +#ifndef __weak_alias +/* + * We do not use any of the SHA function aliases that this would provide in + * OpenNTPD + */ +#define __weak_alias(alias,sym) +#endif