From 41754e56329522dac9f05f4ebefb436908b27fdc Mon Sep 17 00:00:00 2001 From: Wataru Ashihara Date: Sat, 15 Dec 2018 22:06:00 +0900 Subject: [PATCH] Remove unnecessary HAVE_SYS_SYSMACROS_H check HAVE_SYS_SYSMACROS_H is always true if MAJOR_IN_SYSMACROS. This way of checking is recommended in autoconf 2.70 documentation: https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blobdiff;f=doc/autoconf.texi;h=4f041bd4e;hp=9ad7dc1c5f02c8ba25b2fe1218bf931c7113a5d5;hb=e17a30e987d7ee695fb4294a82d987ec3dc9b974;hpb=565a6dc50cfa01cec2fb4db894026689cdf4970c NOTE: currently https://www.gnu.org/software/autoconf/manual/autoconf.html is the doc for autoconf 2.69. --- Process.c | 3 +-- Process.h | 3 +-- linux/LinuxProcessList.c | 3 +-- linux/LinuxProcessList.h | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Process.c b/Process.c index d6e30ee7..3fc90f7c 100644 --- a/Process.c +++ b/Process.c @@ -30,8 +30,7 @@ in the source distribution for its full text. #include #ifdef MAJOR_IN_MKDEV #include -#elif defined(MAJOR_IN_SYSMACROS) || \ - (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H) +#elif defined(MAJOR_IN_SYSMACROS) #include #endif diff --git a/Process.h b/Process.h index f702ca00..9c15d06e 100644 --- a/Process.h +++ b/Process.h @@ -10,8 +10,7 @@ in the source distribution for its full text. */ #ifdef MAJOR_IN_MKDEV -#elif defined(MAJOR_IN_SYSMACROS) || \ - (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H) +#elif defined(MAJOR_IN_SYSMACROS) #endif #ifdef __ANDROID__ diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 62bc0967..027cca4f 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -28,8 +28,7 @@ in the source distribution for its full text. #include #ifdef MAJOR_IN_MKDEV #include -#elif defined(MAJOR_IN_SYSMACROS) || \ - (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H) +#elif defined(MAJOR_IN_SYSMACROS) #include #endif diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h index f30b487d..9dbbce5e 100644 --- a/linux/LinuxProcessList.h +++ b/linux/LinuxProcessList.h @@ -10,8 +10,7 @@ in the source distribution for its full text. */ #ifdef MAJOR_IN_MKDEV -#elif defined(MAJOR_IN_SYSMACROS) || \ - (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H) +#elif defined(MAJOR_IN_SYSMACROS) #endif #ifdef HAVE_DELAYACCT