diff mbox series

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

Message ID 0f90ca5e02a1ec4293a307ac691771c92f4cff0a.1723811552.git.fweimer@redhat.com
State New
Headers show
Series Various support subdirectory cleanups | expand

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 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"
diff mbox series

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"