used AC_USE_SYSTEM_EXTENTIONS() in configure.ac

This commit is contained in:
hyung-hwan 2023-01-29 02:49:20 +09:00
parent d3fdb4bed4
commit 0fc50261bc
4 changed files with 1360 additions and 1326 deletions

2644
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,10 @@ AC_CONFIG_HEADERS([lib/hio-cfg.h])
AC_CONFIG_AUX_DIR([ac]) AC_CONFIG_AUX_DIR([ac])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
dnl define feature-enabling macros
AC_USE_SYSTEM_EXTENSIONS()
dnl use CC and CPP for compilation tests with .c test programs. dnl use CC and CPP for compilation tests with .c test programs.
AC_LANG(C) AC_LANG(C)

View File

@ -880,6 +880,28 @@
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS #undef STDC_HEADERS
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# undef _TANDEM_SOURCE
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif
/* Version number of package */ /* Version number of package */
#undef VERSION #undef VERSION
@ -905,3 +927,13 @@
/* Define for large files, on AIX-style hosts. */ /* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES #undef _LARGE_FILES
/* Define to 1 if on MINIX. */
#undef _MINIX
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#undef _POSIX_1_SOURCE
/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE

View File

@ -25,15 +25,15 @@
#include <hio-pty.h> #include <hio-pty.h>
#include "hio-prv.h" #include "hio-prv.h"
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h> #include <signal.h>
#include <stdlib.h>
#if defined(HAVE_PTY_H) #if defined(HAVE_PTY_H)
# include <pty.h> # include <pty.h>