Browse Source

add cdefs shim for defining __weak_alias on platforms without it

OPENBSD_5_8
Brent Cook 9 years ago
parent
commit
6759f143ed
2 changed files with 15 additions and 0 deletions
  1. +1
    -0
      include/Makefile.am
  2. +14
    -0
      include/sys/cdefs.h

+ 1
- 0
include/Makefile.am View File

@ -1,6 +1,7 @@
noinst_HEADERS = noinst_HEADERS =
noinst_HEADERS += signal.h noinst_HEADERS += signal.h
noinst_HEADERS += unistd.h noinst_HEADERS += unistd.h
noinst_HEADERS += sys/cdefs.h
noinst_HEADERS += sys/queue.h noinst_HEADERS += sys/queue.h
noinst_HEADERS += sys/socket.h noinst_HEADERS += sys/socket.h
noinst_HEADERS += sys/types.h noinst_HEADERS += sys/types.h


+ 14
- 0
include/sys/cdefs.h View File

@ -0,0 +1,14 @@
/*
* Public domain
* sys/cdefs.h compatibility shim
*/
#include_next <sys/cdefs.h>
#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

Loading…
Cancel
Save