From bc9fb0f59ae4d9cc843fa8ac2d9d434cf850910d Mon Sep 17 00:00:00 2001 From: David Steele Date: Sun, 10 Mar 2019 09:16:25 +0200 Subject: [PATCH] Add note for CSTD settings on BSD variants. Suggested by ucando, jungle-boogie, Luca Ferrari. --- doc/xml/release.xml | 15 +++++++++++++++ src/Makefile | 2 ++ 2 files changed, 17 insertions(+) diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 1e29fb491..026709022 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -127,6 +127,16 @@

Make DESTDIR fully-configurable in the Makefile.

+ + + + + + + +

Add note for CSTD settings on BSD variants.

+
+ @@ -6568,6 +6578,11 @@ crunchyjohn + + jungle-boogie + jungle-boogie + + Keith Fiske keithf4 diff --git a/src/Makefile b/src/Makefile index 8f2eb68fc..6172656e8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,6 +8,8 @@ CC=gcc # Compile using C99 and Posix 2001 standards (also _DARWIN_C_SOURCE for MacOS) +# +# For BSD variants use: CSTD = -std=c99 CSTD = -std=c99 -D_POSIX_C_SOURCE=200112L -D_DARWIN_C_SOURCE # Compile optimizations