From: Vibhav Pant vibhavp@gmail.com
--- configure.ac | 2 + include/config.h.in | 153 +++++++++++++++++++++++--------------------- 2 files changed, 83 insertions(+), 72 deletions(-)
diff --git a/configure.ac b/configure.ac index 3f54230b46b..9cc7df4e10a 100644 --- a/configure.ac +++ b/configure.ac @@ -384,6 +384,7 @@ AC_CHECK_HEADERS(\ linux/input.h \ linux/ioctl.h \ linux/major.h \ + linux/memfd.h \ linux/param.h \ linux/serial.h \ linux/types.h \ @@ -2079,6 +2080,7 @@ AC_CHECK_FUNCS(\ getrandom \ kqueue \ mach_continuous_time \ + memfd_create \ pipe2 \ port_create \ posix_fadvise \ diff --git a/include/config.h.in b/include/config.h.in index ef783c75a42..6135c9c1001 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -36,10 +36,10 @@ /* Define to 1 if you have the <cups/ppd.h> header file. */ #undef HAVE_CUPS_PPD_H
-/* Define to 1 if you have the `dladdr1' function. */ +/* Define to 1 if you have the 'dladdr1' function. */ #undef HAVE_DLADDR1
-/* Define to 1 if you have the `dlinfo' function. */ +/* Define to 1 if you have the 'dlinfo' function. */ #undef HAVE_DLINFO
/* Define to 1 if you have the <EGL/egl.h> header file. */ @@ -48,7 +48,7 @@ /* Define to 1 if you have the <elf.h> header file. */ #undef HAVE_ELF_H
-/* Define to 1 if you have the `epoll_create' function. */ +/* Define to 1 if you have the 'epoll_create' function. */ #undef HAVE_EPOLL_CREATE
/* Define to 1 if you have the <float.h> header file. */ @@ -57,43 +57,43 @@ /* Define if FreeType 2 is installed */ #undef HAVE_FREETYPE
-/* Define to 1 if you have the `fstatfs' function. */ +/* Define to 1 if you have the 'fstatfs' function. */ #undef HAVE_FSTATFS
/* Define to 1 if you have the <ft2build.h> header file. */ #undef HAVE_FT2BUILD_H
-/* Define to 1 if the system has the type `FT_TrueTypeEngineType'. */ +/* Define to 1 if the system has the type 'FT_TrueTypeEngineType'. */ #undef HAVE_FT_TRUETYPEENGINETYPE
-/* Define to 1 if you have the `futimens' function. */ +/* Define to 1 if you have the 'futimens' function. */ #undef HAVE_FUTIMENS
-/* Define to 1 if you have the `futimes' function. */ +/* Define to 1 if you have the 'futimes' function. */ #undef HAVE_FUTIMES
-/* Define to 1 if you have the `futimesat' function. */ +/* Define to 1 if you have the 'futimesat' function. */ #undef HAVE_FUTIMESAT
-/* Define to 1 if you have the `getaddrinfo' function. */ +/* Define to 1 if you have the 'getaddrinfo' function. */ #undef HAVE_GETADDRINFO
-/* Define to 1 if you have the `getattrlist' function. */ +/* Define to 1 if you have the 'getattrlist' function. */ #undef HAVE_GETATTRLIST
-/* Define to 1 if you have the `getauxval' function. */ +/* Define to 1 if you have the 'getauxval' function. */ #undef HAVE_GETAUXVAL
-/* Define to 1 if you have the `getifaddrs' function. */ +/* Define to 1 if you have the 'getifaddrs' function. */ #undef HAVE_GETIFADDRS
-/* Define to 1 if you have the `getrandom' function. */ +/* Define to 1 if you have the 'getrandom' function. */ #undef HAVE_GETRANDOM
/* Define to 1 if you have the <gettext-po.h> header file. */ #undef HAVE_GETTEXT_PO_H
-/* Define to 1 if you have the `gnutls_cipher_init' function. */ +/* Define to 1 if you have the 'gnutls_cipher_init' function. */ #undef HAVE_GNUTLS_CIPHER_INIT
/* Define if we have the libgphoto2_port development environment */ @@ -111,7 +111,7 @@ /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H
-/* Define to 1 if you have the `kqueue' function. */ +/* Define to 1 if you have the 'kqueue' function. */ #undef HAVE_KQUEUE
/* Define to 1 if you have the <krb5/krb5.h> header file. */ @@ -180,6 +180,9 @@ /* Define to 1 if you have the <linux/major.h> header file. */ #undef HAVE_LINUX_MAJOR_H
+/* Define to 1 if you have the <linux/memfd.h> header file. */ +#undef HAVE_LINUX_MEMFD_H + /* Define to 1 if you have the <linux/param.h> header file. */ #undef HAVE_LINUX_PARAM_H
@@ -210,7 +213,7 @@ /* Define to 1 if you have the <machine/sysarch.h> header file. */ #undef HAVE_MACHINE_SYSARCH_H
-/* Define to 1 if you have the `mach_continuous_time' function. */ +/* Define to 1 if you have the 'mach_continuous_time' function. */ #undef HAVE_MACH_CONTINUOUS_TIME
/* Define to 1 if you have the <mach/mach.h> header file. */ @@ -219,6 +222,9 @@ /* Define to 1 if you have the <mach-o/loader.h> header file. */ #undef HAVE_MACH_O_LOADER_H
+/* Define to 1 if you have the 'memfd_create' function. */ +#undef HAVE_MEMFD_CREATE + /* Define to 1 if you have the <mntent.h> header file. */ #undef HAVE_MNTENT_H
@@ -294,34 +300,34 @@ /* Define to 1 if you have the <OpenCL/opencl.h> header file. */ #undef HAVE_OPENCL_OPENCL_H
-/* Define to 1 if `numaudioengines' is a member of `oss_sysinfo'. */ +/* Define to 1 if 'numaudioengines' is a member of 'oss_sysinfo'. */ #undef HAVE_OSS_SYSINFO_NUMAUDIOENGINES
/* Define to 1 if you have the <pcap/pcap.h> header file. */ #undef HAVE_PCAP_PCAP_H
-/* Define to 1 if you have the `pipe2' function. */ +/* Define to 1 if you have the 'pipe2' function. */ #undef HAVE_PIPE2
-/* Define to 1 if you have the `port_create' function. */ +/* Define to 1 if you have the 'port_create' function. */ #undef HAVE_PORT_CREATE
/* Define to 1 if you have the <port.h> header file. */ #undef HAVE_PORT_H
-/* Define to 1 if you have the `posix_fadvise' function. */ +/* Define to 1 if you have the 'posix_fadvise' function. */ #undef HAVE_POSIX_FADVISE
-/* Define to 1 if you have the `posix_fallocate' function. */ +/* Define to 1 if you have the 'posix_fallocate' function. */ #undef HAVE_POSIX_FALLOCATE
-/* Define to 1 if you have the `prctl' function. */ +/* Define to 1 if you have the 'prctl' function. */ #undef HAVE_PRCTL
-/* Define to 1 if you have the `proc_pidinfo' function. */ +/* Define to 1 if you have the 'proc_pidinfo' function. */ #undef HAVE_PROC_PIDINFO
-/* Define to 1 if you have the `pthread_getthreadid_np' function. */ +/* Define to 1 if you have the 'pthread_getthreadid_np' function. */ #undef HAVE_PTHREAD_GETTHREADID_NP
/* Define to 1 if you have the <pthread_np.h> header file. */ @@ -330,7 +336,7 @@ /* Define to 1 if you have the <pwd.h> header file. */ #undef HAVE_PWD_H
-/* Define to 1 if the system has the type `request_sense'. */ +/* Define to 1 if the system has the type 'request_sense'. */ #undef HAVE_REQUEST_SENSE
/* Define if you have the resolver library and header */ @@ -348,10 +354,10 @@ /* Define to 1 if you have the `sched_setaffinity' function. */ #undef HAVE_SCHED_SETAFFINITY
-/* Define to 1 if you have the `sched_yield' function. */ +/* Define to 1 if you have the 'sched_yield' function. */ #undef HAVE_SCHED_YIELD
-/* Define to 1 if `cmd' is a member of `scsireq_t'. */ +/* Define to 1 if 'cmd' is a member of 'scsireq_t'. */ #undef HAVE_SCSIREQ_T_CMD
/* Define to 1 if you have the <scsi/scsi.h> header file. */ @@ -366,19 +372,19 @@ /* Define to 1 if you have the <SDL.h> header file. */ #undef HAVE_SDL_H
-/* Define to 1 if you have the `setproctitle' function. */ +/* Define to 1 if you have the 'setproctitle' function. */ #undef HAVE_SETPROCTITLE
-/* Define to 1 if you have the `setprogname' function. */ +/* Define to 1 if you have the 'setprogname' function. */ #undef HAVE_SETPROGNAME
-/* Define to 1 if `interface_id' is a member of `sg_io_hdr_t'. */ +/* Define to 1 if 'interface_id' is a member of 'sg_io_hdr_t'. */ #undef HAVE_SG_IO_HDR_T_INTERFACE_ID
-/* Define to 1 if `si_fd' is a member of `siginfo_t'. */ +/* Define to 1 if 'si_fd' is a member of 'siginfo_t'. */ #undef HAVE_SIGINFO_T_SI_FD
-/* Define to 1 if you have the `sigprocmask' function. */ +/* Define to 1 if you have the 'sigprocmask' function. */ #undef HAVE_SIGPROCMASK
/* Define to 1 if you have the <stdint.h> header file. */ @@ -396,100 +402,100 @@ /* Define to 1 if you have the <string.h> header file. */ #undef HAVE_STRING_H
-/* Define to 1 if `icp6s_error' is a member of `struct icmp6stat'. */ +/* Define to 1 if 'icp6s_error' is a member of 'struct icmp6stat'. */ #undef HAVE_STRUCT_ICMP6STAT_ICP6S_ERROR
-/* Define to 1 if `icps_error' is a member of `struct icmpstat'. */ +/* Define to 1 if 'icps_error' is a member of 'struct icmpstat'. */ #undef HAVE_STRUCT_ICMPSTAT_ICPS_ERROR
-/* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */ +/* Define to 1 if 'ifr_hwaddr' is a member of 'struct ifreq'. */ #undef HAVE_STRUCT_IFREQ_IFR_HWADDR
-/* Define to 1 if `ipi6_addr' is a member of `struct in6_pktinfo'. */ +/* Define to 1 if 'ipi6_addr' is a member of 'struct in6_pktinfo'. */ #undef HAVE_STRUCT_IN6_PKTINFO_IPI6_ADDR
-/* Define to 1 if `ip6s_total' is a member of `struct ip6stat'. */ +/* Define to 1 if 'ip6s_total' is a member of 'struct ip6stat'. */ #undef HAVE_STRUCT_IP6STAT_IP6S_TOTAL
-/* Define to 1 if `ips_total' is a member of `struct ipstat'. */ +/* Define to 1 if 'ips_total' is a member of 'struct ipstat'. */ #undef HAVE_STRUCT_IPSTAT_IPS_TOTAL
-/* Define to 1 if `ips_total' is a member of `struct ip_stats'. */ +/* Define to 1 if 'ips_total' is a member of 'struct ip_stats'. */ #undef HAVE_STRUCT_IP_STATS_IPS_TOTAL
-/* Define to 1 if `mt_blkno' is a member of `struct mtget'. */ +/* Define to 1 if 'mt_blkno' is a member of 'struct mtget'. */ #undef HAVE_STRUCT_MTGET_MT_BLKNO
-/* Define to 1 if `mt_blksiz' is a member of `struct mtget'. */ +/* Define to 1 if 'mt_blksiz' is a member of 'struct mtget'. */ #undef HAVE_STRUCT_MTGET_MT_BLKSIZ
-/* Define to 1 if `mt_gstat' is a member of `struct mtget'. */ +/* Define to 1 if 'mt_gstat' is a member of 'struct mtget'. */ #undef HAVE_STRUCT_MTGET_MT_GSTAT
-/* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */ +/* Define to 1 if 'sin6_scope_id' is a member of 'struct sockaddr_in6'. */ #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
-/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ +/* Define to 1 if 'sun_len' is a member of 'struct sockaddr_un'. */ #undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
-/* Define to 1 if `st_atim' is a member of `struct stat'. */ +/* Define to 1 if 'st_atim' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIM
-/* Define to 1 if `st_atimespec' is a member of `struct stat'. */ +/* Define to 1 if 'st_atimespec' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIMESPEC
-/* Define to 1 if `st_birthtim' is a member of `struct stat'. */ +/* Define to 1 if 'st_birthtim' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIM
-/* Define to 1 if `st_birthtime' is a member of `struct stat'. */ +/* Define to 1 if 'st_birthtime' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIME
-/* Define to 1 if `st_birthtimespec' is a member of `struct stat'. */ +/* Define to 1 if 'st_birthtimespec' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC
-/* Define to 1 if `st_ctim' is a member of `struct stat'. */ +/* Define to 1 if 'st_ctim' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_CTIM
-/* Define to 1 if `st_ctimespec' is a member of `struct stat'. */ +/* Define to 1 if 'st_ctimespec' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_CTIMESPEC
-/* Define to 1 if `st_mtim' is a member of `struct stat'. */ +/* Define to 1 if 'st_mtim' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_MTIM
-/* Define to 1 if `st_mtimespec' is a member of `struct stat'. */ +/* Define to 1 if 'st_mtimespec' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_MTIMESPEC
-/* Define to 1 if `__st_birthtim' is a member of `struct stat'. */ +/* Define to 1 if '__st_birthtim' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT___ST_BIRTHTIM
-/* Define to 1 if `__st_birthtime' is a member of `struct stat'. */ +/* Define to 1 if '__st_birthtime' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT___ST_BIRTHTIME
-/* Define to 1 if `mem_unit' is a member of `struct sysinfo'. */ +/* Define to 1 if 'mem_unit' is a member of 'struct sysinfo'. */ #undef HAVE_STRUCT_SYSINFO_MEM_UNIT
-/* Define to 1 if `totalram' is a member of `struct sysinfo'. */ +/* Define to 1 if 'totalram' is a member of 'struct sysinfo'. */ #undef HAVE_STRUCT_SYSINFO_TOTALRAM
-/* Define to 1 if `tcps_connattempt' is a member of `struct tcpstat'. */ +/* Define to 1 if 'tcps_connattempt' is a member of 'struct tcpstat'. */ #undef HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT
-/* Define to 1 if `tcps_connattempt' is a member of `struct tcp_stats'. */ +/* Define to 1 if 'tcps_connattempt' is a member of 'struct tcp_stats'. */ #undef HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT
-/* Define to 1 if `udps_ipackets' is a member of `struct udpstat'. */ +/* Define to 1 if 'udps_ipackets' is a member of 'struct udpstat'. */ #undef HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS
-/* Define to 1 if the system has the type `struct xinpgen'. */ +/* Define to 1 if the system has the type 'struct xinpgen'. */ #undef HAVE_STRUCT_XINPGEN
-/* Define to 1 if `_u._ext.nscount6' is a member of `struct __res_state'. */ +/* Define to 1 if '_u._ext.nscount6' is a member of 'struct __res_state'. */ #undef HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6
/* Define to 1 if you have the <syscall.h> header file. */ #undef HAVE_SYSCALL_H
-/* Define to 1 if you have the `sysinfo' function. */ +/* Define to 1 if you have the 'sysinfo' function. */ #undef HAVE_SYSINFO
/* Define to 1 if you have the <sys/attr.h> header file. */ @@ -621,10 +627,10 @@ /* Define to 1 if you have the <sys/xattr.h> header file. */ #undef HAVE_SYS_XATTR_H
-/* Define to 1 if you have the `tcdrain' function. */ +/* Define to 1 if you have the 'tcdrain' function. */ #undef HAVE_TCDRAIN
-/* Define to 1 if you have the `thr_kill2' function. */ +/* Define to 1 if you have the 'thr_kill2' function. */ #undef HAVE_THR_KILL2
/* Define to 1 if you have the `udev' library (-ludev). */ @@ -669,10 +675,10 @@ /* Define to 1 if you have the <X11/extensions/XShm.h> header file. */ #undef HAVE_X11_EXTENSIONS_XSHM_H
-/* Define to 1 if `xcookie' is a member of `XEvent'. */ +/* Define to 1 if 'xcookie' is a member of 'XEvent'. */ #undef HAVE_XEVENT_XCOOKIE
-/* Define to 1 if `callback' is a member of `XICCallback'. */ +/* Define to 1 if 'callback' is a member of 'XICCallback'. */ #undef HAVE_XICCALLBACK_CALLBACK
/* Define to 1 if you have the <xkbcommon/xkbcommon.h> header file. */ @@ -801,10 +807,10 @@ /* Define to the soname of the libXxf86vm library. */ #undef SONAME_LIBXXF86VM
-/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* Define to 1 if the 'S_IS*' macros in <sys/stat.h> do not work properly. */ #undef STAT_MACROS_BROKEN
-/* Define to 1 if all of the C90 standard headers exist (not just the ones +/* Define to 1 if all of the C89 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS @@ -821,13 +827,16 @@ /* Define to 1 to enable GNU extensions on Linux */ #undef _GNU_SOURCE
-/* Define for large files, on AIX-style hosts. */ +/* Define to 1 on platforms where this makes off_t a 64-bit type. */ #undef _LARGE_FILES
-/* Define to 64 to enable 64-bit time_t */ +/* Number of bits in time_t, on hosts where this is settable. */ #undef _TIME_BITS
-/* Define to `__inline__' or `__inline' if that's what the C compiler +/* Define to 1 on platforms where this makes time_t a 64-bit type. */ +#undef __MINGW_USE_VC2005_COMPAT + +/* Define to '__inline__' or '__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline