Skip to content

Commit

Permalink
config.h.guess: Fix remaining expansion-to-defined occurences
Browse files Browse the repository at this point in the history
  • Loading branch information
daurnimator committed Aug 13, 2019
1 parent 7f6c134 commit eef2ad0
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions config.h.guess
Original file line number Diff line number Diff line change
Expand Up @@ -492,17 +492,23 @@
#endif

#ifndef HAVE_SYS_EVENTFD_H
#define HAVE_SYS_EVENTFD_H_ (AG_GLIBC_PREREQ(2,8) || (!AG_GLIBC_PREREQ(0,0) && __linux__) || defined EFD_CLOEXEC)
#define HAVE_SYS_EVENTFD_H ag_test_include(<sys/eventfd.h>, HAVE_SYS_EVENTFD_H_)
#if (AG_GLIBC_PREREQ(2,8) || (!AG_GLIBC_PREREQ(0,0) && __linux__) || defined EFD_CLOEXEC)
#define HAVE_SYS_EVENTFD_H ag_test_include(<sys/eventfd.h>, 1)
#else
#define HAVE_SYS_EVENTFD_H ag_test_include(<sys/eventfd.h>, 0)
#endif
#endif

#ifndef HAVE_SYS_INOTIFY_H
#define HAVE_SYS_INOTIFY_H ag_test_include(<sys/inotify.h>, __linux__)
#endif

#ifndef HAVE_SYS_SIGNALFD_H
#define HAVE_SYS_SIGNALFD_H_ (AG_GLIBC_PREREQ(2,8) || (!AG_GLIBC_PREREQ(0,0) && __linux__) || defined SFD_CLOEXEC)
#define HAVE_SYS_SIGNALFD_H ag_test_include(<sys/signalfd.h>, HAVE_SYS_SIGNALFD_H_)
#if (AG_GLIBC_PREREQ(2,8) || (!AG_GLIBC_PREREQ(0,0) && __linux__) || defined SFD_CLOEXEC)
#define HAVE_SYS_SIGNALFD_H ag_test_include(<sys/signalfd.h>, 1)
#else
#define HAVE_SYS_SIGNALFD_H ag_test_include(<sys/signalfd.h>, 0)
#endif
#endif

#ifndef HAVE_SYS_SOCKET_H
Expand All @@ -522,8 +528,11 @@
#endif

#ifndef HAVE_SYS_TIMERFD_H
#define HAVE_SYS_TIMERFD_H_ (AG_GLIBC_PREREQ(2,8) || (!AG_GLIBC_PREREQ(0,0) && __linux__) || defined TFD_CLOEXEC)
#define HAVE_SYS_TIMERFD_H ag_test_include(<sys/timerfd.h>, HAVE_SYS_TIMERFD_H_)
#if AG_GLIBC_PREREQ(2,8) || (!AG_GLIBC_PREREQ(0,0) && __linux__) || defined TFD_CLOEXEC
#define HAVE_SYS_TIMERFD_H ag_test_include(<sys/timerfd.h>, 1)
#else
#define HAVE_SYS_TIMERFD_H ag_test_include(<sys/timerfd.h>, 0)
#endif
#endif

#ifndef HAVE_SYS_TYPES_H
Expand Down Expand Up @@ -558,7 +567,11 @@
#endif

#ifndef HAVE_STRUCT_STAT_ST_ATIM
#define HAVE_STRUCT_STAT_ST_ATIM (defined st_atime && ((!__APPLE__ && (!__NetBSD__ || AG_NETBSD_PREREQ(7,0,0))) || !HAVE_STRUCT_STAT_ST_ATIMESPEC))
#ifdef st_atime
#define HAVE_STRUCT_STAT_ST_ATIM ((!__APPLE__ && (!__NetBSD__ || AG_NETBSD_PREREQ(7,0,0))) || !HAVE_STRUCT_STAT_ST_ATIMESPEC)
#else
#define HAVE_STRUCT_STAT_ST_ATIM 0
#endif
#endif

#ifndef HAVE_STRUCT_STAT_ST_CTIM
Expand All @@ -570,7 +583,11 @@
#endif

#ifndef HAVE_STRUCT_STAT_ST_ATIMESPEC
#define HAVE_STRUCT_STAT_ST_ATIMESPEC (__APPLE__ || defined st_atimespec || defined st_atimensec)
#if __APPLE__ || defined st_atimespec || defined st_atimensec
#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
#else
#define HAVE_STRUCT_STAT_ST_ATIMESPEC 0
#endif
#endif

#ifndef HAVE_STRUCT_STAT_ST_CTIMESPEC
Expand Down Expand Up @@ -867,7 +884,11 @@
#endif

#ifndef HAVE_POSIX_FADVISE
#define HAVE_POSIX_FADVISE (defined POSIX_FADV_NORMAL || AG_GLIBC_PREREQ(2,2) || __sun || AG_MUSL_MAYBE || AG_FREEBSD_PREREQ(9,0,0))
#if (defined POSIX_FADV_NORMAL || AG_GLIBC_PREREQ(2,2) || __sun || AG_MUSL_MAYBE || AG_FREEBSD_PREREQ(9,0,0))
#define HAVE_POSIX_FADVISE 1
#else
#define HAVE_POSIX_FADVISE 0
#endif
#endif

#ifndef HAVE_POSIX_FALLOCATE
Expand Down

0 comments on commit eef2ad0

Please sign in to comment.