[1/5] support: Remove #include <config.h>

Message ID 0f90ca5e02a1ec4293a307ac691771c92f4cff0a.1723811552.git.fweimer@redhat.com
State Committed
Commit 91ae020f5a9c43ab319edce64355ca95a5f8dfad
Headers
Series Various support subdirectory cleanups |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 fail Patch failed to apply

Commit Message

Florian Weimer Aug. 16, 2024, 12:34 p.m. UTC
  This is not needed: include/intprops.h has its own detection logic.
It makes building these files outside of glibc easer.
---
 support/timespec-add.c | 1 -
 support/timespec-sub.c | 1 -
 2 files changed, 2 deletions(-)
  

Comments

Adhemerval Zanella Netto Aug. 16, 2024, 12:45 p.m. UTC | #1
On 16/08/24 09:34, Florian Weimer wrote:
> This is not needed: include/intprops.h has its own detection logic.
> It makes building these files outside of glibc easer.

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  support/timespec-add.c | 1 -
>  support/timespec-sub.c | 1 -
>  2 files changed, 2 deletions(-)
> 
> diff --git a/support/timespec-add.c b/support/timespec-add.c
> index 55fd812f31..57b968c316 100644
> --- a/support/timespec-add.c
> +++ b/support/timespec-add.c
> @@ -20,7 +20,6 @@
>  /* Return the sum of two timespec values A and B.  On overflow, return
>     an extremal value.  This assumes 0 <= tv_nsec < TIMESPEC_HZ.  */
>  
> -#include <config.h>
>  #include "timespec.h"
>  
>  #include "intprops.h"
> diff --git a/support/timespec-sub.c b/support/timespec-sub.c
> index 7d89c1415a..2897343fce 100644
> --- a/support/timespec-sub.c
> +++ b/support/timespec-sub.c
> @@ -21,7 +21,6 @@
>     overflow, return an extremal value.  This assumes 0 <= tv_nsec <
>     TIMESPEC_HZ.  */
>  
> -#include <config.h>
>  #include "timespec.h"
>  
>  #include "intprops.h"
  

Patch

diff --git a/support/timespec-add.c b/support/timespec-add.c
index 55fd812f31..57b968c316 100644
--- a/support/timespec-add.c
+++ b/support/timespec-add.c
@@ -20,7 +20,6 @@ 
 /* Return the sum of two timespec values A and B.  On overflow, return
    an extremal value.  This assumes 0 <= tv_nsec < TIMESPEC_HZ.  */
 
-#include <config.h>
 #include "timespec.h"
 
 #include "intprops.h"
diff --git a/support/timespec-sub.c b/support/timespec-sub.c
index 7d89c1415a..2897343fce 100644
--- a/support/timespec-sub.c
+++ b/support/timespec-sub.c
@@ -21,7 +21,6 @@ 
    overflow, return an extremal value.  This assumes 0 <= tv_nsec <
    TIMESPEC_HZ.  */
 
-#include <config.h>
 #include "timespec.h"
 
 #include "intprops.h"