Do not treat as an umbrella header for The two are distinct on GNU/Linux. Also add missing #include in some files. diff --git a/src/sed/lib/getline.c b/src/sed/lib/getline.c index 4cb9d45b..f39c363f 100644 --- a/src/sed/lib/getline.c +++ b/src/sed/lib/getline.c @@ -9,10 +9,10 @@ #include #undef getline /* bird */ +#include + #ifdef HAVE_STRINGS_H # include -#else -# include #endif /* HAVE_STRINGS_H */ #ifdef HAVE_STDLIB_H diff --git a/src/sed/lib/mkstemp.c b/src/sed/lib/mkstemp.c index 5b00205c..f36f7ca4 100644 --- a/src/sed/lib/mkstemp.c +++ b/src/sed/lib/mkstemp.c @@ -2,10 +2,10 @@ #include "config.h" #endif +#include + #ifdef HAVE_STRINGS_H # include -#else -# include #endif /* HAVE_STRINGS_H */ #ifdef HAVE_STDLIB_H diff --git a/src/sed/lib/utils.c b/src/sed/lib/utils.c index 41c61aaf..48a8b57f 100644 --- a/src/sed/lib/utils.c +++ b/src/sed/lib/utils.c @@ -25,10 +25,10 @@ extern int errno; #endif +#include + #ifdef HAVE_STRINGS_H # include -#else -# include #endif /* HAVE_STRINGS_H */ #ifdef HAVE_STDLIB_H diff --git a/src/sed/sed/compile.c b/src/sed/sed/compile.c index 0ecc2fe2..064bb350 100644 --- a/src/sed/sed/compile.c +++ b/src/sed/sed/compile.c @@ -22,14 +22,13 @@ #include "strverscmp.h" #include #include +#include #ifdef HAVE_STRINGS_H # include # ifdef HAVE_MEMORY_H # include # endif -#else -# include #endif /* HAVE_STRINGS_H */ #ifdef HAVE_STDLIB_H diff --git a/src/sed/sed/execute.c b/src/sed/sed/execute.c index c9038f4f..09080b5b 100644 --- a/src/sed/sed/execute.c +++ b/src/sed/sed/execute.c @@ -24,6 +24,7 @@ #include #include +#include #include #ifndef errno @@ -46,8 +47,6 @@ extern int errno; #ifdef HAVE_STRINGS_H # include -#else -# include #endif /*HAVE_STRINGS_H*/ #ifdef HAVE_MEMORY_H # include diff --git a/src/sed/sed/fmt.c b/src/sed/sed/fmt.c index 64600a06..4374070e 100644 --- a/src/sed/sed/fmt.c +++ b/src/sed/sed/fmt.c @@ -22,6 +22,7 @@ #include #include #include +#include #if HAVE_LIMITS_H # include diff --git a/src/sed/sed/mbcs.c b/src/sed/sed/mbcs.c index 37565472..79e3f843 100644 --- a/src/sed/sed/mbcs.c +++ b/src/sed/sed/mbcs.c @@ -17,6 +17,7 @@ #include "sed.h" #include +#include int mb_cur_max; diff --git a/src/sed/sed/regexp.c b/src/sed/sed/regexp.c index d4e7437c..a007494d 100644 --- a/src/sed/sed/regexp.c +++ b/src/sed/sed/regexp.c @@ -19,6 +19,7 @@ #include #include +#include #ifdef HAVE_STDLIB_H # include #endif diff --git a/src/sed/sed/sed.c b/src/sed/sed/sed.c index b3bc2ea2..3829e2c6 100644 --- a/src/sed/sed/sed.c +++ b/src/sed/sed/sed.c @@ -22,12 +22,10 @@ #include "sed.h" - #include +#include #ifdef HAVE_STRINGS_H # include -#else -# include #endif /*HAVE_STRINGS_H*/ #ifdef HAVE_MEMORY_H # include