Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make C11 _Static_assert() available if we have it
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6ae8119
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to break build on FreeBSD 10.x
Making all in lib
gmake[2]: Entering directory '/root/work/varnish-5.1.2/lib'
Making all in libvarnish
gmake[3]: Entering directory '/root/work/varnish-5.1.2/lib/libvarnish'
CC libvarnish_a-binary_heap.o
CC libvarnish_a-vas.o
CC libvarnish_a-vav.o
CC libvarnish_a-vcli_proto.o
CC libvarnish_a-vcli_serve.o
In file included from vcli_serve.c:45:
../../include/vdef.h:129:1: error: "_Static_assert" redefined
In file included from /usr/include/time.h:44,
from vcli_serve.c:34:
/usr/include/sys/cdefs.h:295:1: error: this is the location of the previous definition
gmake[3]: *** [Makefile:790: libvarnish_a-vcli_serve.o] Error 1
gmake[3]: Leaving directory '/root/work/varnish-5.1.2/lib/libvarnish'
gmake[2]: *** [Makefile:410: all-recursive] Error 1
gmake[2]: Leaving directory '/root/work/varnish-5.1.2/lib'
gmake[1]: *** [Makefile:553: all-recursive] Error 1
gmake[1]: Leaving directory '/root/work/varnish-5.1.2'
gmake: *** [Makefile:439: all] Error 2
6ae8119
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working on this.