X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpsi%2Fpsi.m4;h=dbe3defc8f4d89acb3139b18d98c9e8c899b026b;hb=dbf1c3d1754adc5ee571e71395dbd297a9c3d093;hp=2a1e681cc174e9c9d528b756b5a4dcf6264ee214;hpb=3fa287dfd76814b2ec54991c0208a019845a3dc0;p=m6w6%2Fext-psi diff --git a/m4/psi/psi.m4 b/m4/psi/psi.m4 index 2a1e681..dbe3def 100644 --- a/m4/psi/psi.m4 +++ b/m4/psi/psi.m4 @@ -137,7 +137,7 @@ AC_DEFUN(PSI_CONFIG_POSIX_ENABLED, [ AS_TR_SH([psi_config_posix_]$1)=false case "$PHP_PSI_POSIX" in yes|all) - AS_TR_SH([psi_config_posix_]$1)=true + AS_TR_SH([psi_config_posix_]$1)=true ;; *) if expr "$PHP_PSI_POSIX" : '\b$1\b' >/dev/null; then @@ -185,7 +185,11 @@ AC_DEFUN(PSI_PTHREAD, [ dnl PSI_INCLUDES() dnl Expands to a complete list of include statements including dnl AC_INCLUDES_DEFAULT(). -AC_DEFUN(PSI_INCLUDES, [AC_INCLUDES_DEFAULT() +AC_DEFUN(PSI_INCLUDES, [#define PSI_INCLUDES +#define _GNU_SOURCE 1 +#define _POSIX_C_SOURCE 200809L +#define _XOPEN_SOURCE 700 +AC_INCLUDES_DEFAULT() #ifdef HAVE_ERRNO_H # include #endif @@ -212,6 +216,8 @@ AC_DEFUN(PSI_INCLUDES, [AC_INCLUDES_DEFAULT() #endif #ifdef HAVE_NDBM_H # include +#elif HAVE_GDBM_NDBM_H +# include #endif #ifdef HAVE_NETDB_H # include