X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=configure.ac;h=7e13190560324b12123f18926051ff83d7870bb0;hp=1f925fa1f08402940aa45b1eebfb5be259e923be;hb=c5f46105a8ca33fcd313268a6edb286b028a922b;hpb=d486cbddfe380de95a98646f7626426955e563ee diff --git a/configure.ac b/configure.ac index 1f925fa..7e13190 100644 --- a/configure.ac +++ b/configure.ac @@ -31,16 +31,18 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.11 -Wall -Werror no-define std-options check-news]) AM_SILENT_RULES([yes]) -AH_TOP([#ifndef SIGROK_CLI_CONFIG_H -#define SIGROK_CLI_CONFIG_H /* To stop multiple inclusions. */]) -AH_BOTTOM([#endif /* SIGROK_CLI_CONFIG_H */]) - AC_CANONICAL_HOST # Checks for programs. AC_PROG_CC AC_PROG_INSTALL +# Set the standard the C library headers should conform to. +AH_VERBATIM([_POSIX_C_SOURCE], [/* The targeted POSIX standard. */ +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif]) + # Get compiler versions. SR_PROG_VERSION([$CC], [sc_cc_version])