Portable build framework for OpenNTPD
C M4 Makefile Shell
Clone or download
baruchsiach Revert "use __dead macro from sys/cdefs.h"
This partially reverts commit a757766.

The musl C library does not use an internal cdefs.h header. As a result,
the definitions in sys/cdefs.h have no effect. This breads the build as

In file included from adjfreq_linux.c:23:0:
../src/ntpd.h:448:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
 __dead void fatal(const char *, ...)
../src/ntpd.h:450:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
 __dead void fatalx(const char *, ...)

Refer the related musl FAQ about cdefs.h:


Keep the compiler attribute definition.

Remove also from noinst_HEADERS.
Latest commit 17aa5d9 Sep 26, 2017
Failed to load latest commit information.
include Revert "use __dead macro from sys/cdefs.h" Sep 26, 2017
m4 fix test to use builtin arc4random if it passes specs Jun 11, 2017
src fix leak if constraints are enabled in config, but disabled in the build Aug 12, 2017
.travis.yml add travis config Sep 26, 2015
AUTHORS Move credits from README to AUTHORS. Jan 2, 2015
ChangeLog update changelog Sep 17, 2017
INSTALL Added bison as a build dependency Jul 15, 2017
Makefile.am spring cleaning before resyncing with upstream Mar 12, 2015
OPENBSD_BRANCH add infrastructure for checking out branches Sep 26, 2015
VERSION bump to p3 Sep 17, 2017
configure.ac compat updates, add recallocarray and freezero Jun 11, 2017
dist.sh consolidate patches, cleanup dist.sh Jan 2, 2015


This is a new port of OpenBSD's native ntpd to other Unix flavours adding
autoconf support and the necessary compatibility layer.  It is based on
portability code from the OpenSSH and LibreSSL portable projects.

OpenNTPD has a web site at http://www.openntpd.org/

The current portable tree can be found at https://github.com/openntpd-portable

Platform Requirements
 - adjtime(2) and settimeofday(2) syscalls or equivalent.
 - adjfreq(2) or an equivalent compatibility function for best results
 - daemon(3), setresgid(2), setresuid(2) or equivalent
 - A working arc4random(2) implementation, OpenSSL or LibreSSL
     (this project shares the same arc4random compatibility code from LibreSSL)
 - libtls (included with LibreSSL 2.1.4 or higher) is required for HTTPS time
   constraint validation.

At the time of writing the Portable version is known to build and work on:

 - OpenBSD (5.6)
 - Linux (Ubuntu 12.04, 14.04)
 - FreeBSD (9.x, 10.x)
 - NetBSD (6.1.5)
 - Solaris (10.x, 11.x)
 - Mac OS X (10.9)

OpenNTPD may work on other operating systems, newer and older, but the above
ones are tested regularly by the developer.

Reports (success or otherwise) are welcome. You may report bugs or submit pull
requests at the GitHub project: https://github.com/openntpd-portable

  Brent Cook <bcook at openbsd.org>.