Skip to content

Commit

Permalink
configure.ac: define _BSD_SOURCE for snprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
tcort committed Sep 3, 2016
1 parent 0d55a8e commit 165e1e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_STDC

AC_DEFINE([_BSD_SOURCE], [], [for snprintf()])
AC_DEFINE([_DEFAULT_SOURCE], [], [for GNU systems that complain about _BSD_SOURCE being deprecated])

AC_CONFIG_HEADERS([config.h:config.in])

AC_OUTPUT([Makefile])
2 changes: 2 additions & 0 deletions uuid.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "config.h"

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 165e1e8

Please sign in to comment.