diff --git a/SConstruct b/SConstruct index 41b467e..a8203a6 100644 --- a/SConstruct +++ b/SConstruct @@ -102,7 +102,7 @@ if env['CC'] == 'cl': ] ) else: - env.MergeFlags('-std=gnu99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes -Wno-unused-variable') + env.MergeFlags('-std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes -Wno-unused-variable') # Linker options if env['PLATFORM'] == 'darwin': diff --git a/src/registry.c b/src/registry.c index a8646c1..00486db 100644 --- a/src/registry.c +++ b/src/registry.c @@ -15,6 +15,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include #include #include "hammer.h" #include "internal.h"