[Git][NTPsec/ntpsec][master] Fix build error on Solaris regarding siginfo_t not being defined
Matt Selsky
gitlab at mg.gitlab.com
Fri Dec 8 14:29:53 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
ffca920b by Matt Selsky at 2017-12-08T09:07:42-05:00
Fix build error on Solaris regarding siginfo_t not being defined
'gcc', '-fstack-protector-all', '-Wshadow', '-Wpacked', '-Wcast-qual', '-Wmissing-declarations', '-Wdisabled-optimization', '-Wimplicit-function-declaration', '-Winvalid-pch', '-Wpointer-arith', '-Wwrite-strings', '-Winit-self', '-Wfloat-equal', '-Wformat', '-Wformat-security', '-Wsuggest-attribute=noreturn', '-fPIC', '-O1', '-Wall', '-Wextra', '-Wmissing-prototypes', '-Wstrict-prototypes', '-Wundef', '-Wunused', '-std=c99', '-D_GNU_SOURCE', '-I../host/ntpd', '-I../../ntpd', '-I..', '-I../../include', '-DPYTHONDIR="/usr/local/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.7/site-packages"', '-DHAVE_PYEXT=1', '-DHAVE_PYTHON_H=1', '../../ntpd/ntp_sandbox.c', '-c', '-o/home/worker/Buildbot/status/full_Solaris_4.8.2_GCC_4.8.2_refclocks/build/build/main/ntpd/ntp_sandbox.c.18.o']
In file included from ../../ntpd/ntp_sandbox.c:51:0:
../../include/ntp_stdlib.h:128:53: error: unknown type name 'siginfo_t'
extern void signal_no_reset1(int, void (*func)(int, siginfo_t *, void *));
^
Commit "Reduce clutter from ./waf -v" caused definitions like __EXTENSIONS__
and _POSIX_C_SOURCE to now only be defined in config.h, instead of being in the
command line passed to the compiler.
Therefore we must include config.h before including system headers to get the
correct feature macros to be set so that we get POSIX versions of functions and
symbols.
- - - - -
1 changed file:
- ntpd/ntp_sandbox.c
Changes:
=====================================
ntpd/ntp_sandbox.c
=====================================
--- a/ntpd/ntp_sandbox.c
+++ b/ntpd/ntp_sandbox.c
@@ -4,6 +4,8 @@
* SPDX-License-Identifier: BSD-2-clause
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
@@ -11,7 +13,6 @@
#include <errno.h>
#include <signal.h>
-#include "config.h"
#include "ntp_assert.h"
#ifdef ENABLE_DROPROOT
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ffca920b44411df149476150b8476af04f2161ab
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ffca920b44411df149476150b8476af04f2161ab
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171208/17e7670b/attachment.html>
More information about the vc
mailing list