diff mbox series

[3/3] tests: add missing include for strerror(3P)

Message ID 7e2258fd221466a2974dcf7f0643c65168b429f8.1566805721.git.ps@pks.im (mailing list archive)
State New, archived
Headers show
Series [1/3] mount: fix compilation if __GLIBC__ is not defined | expand

Commit Message

Patrick Steinhardt Aug. 26, 2019, 7:48 a.m. UTC
The function strerror(3P) is declared in <string.h>, but it is not
included in "statdb_dump.c". Include it to fix compile errors.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
---
 tests/statdb_dump.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Steve Dickson Aug. 26, 2019, 6:03 p.m. UTC | #1
On 8/26/19 3:48 AM, Patrick Steinhardt wrote:
> The function strerror(3P) is declared in <string.h>, but it is not
> included in "statdb_dump.c". Include it to fix compile errors.
> 
> Signed-off-by: Patrick Steinhardt <ps@pks.im>
> ---
>  tests/statdb_dump.c | 1 +
>  1 file changed, 1 insertion(+)
Committed...

steved.
> 
> diff --git a/tests/statdb_dump.c b/tests/statdb_dump.c
> index 92d63f29..3ac12bff 100644
> --- a/tests/statdb_dump.c
> +++ b/tests/statdb_dump.c
> @@ -23,6 +23,7 @@
>  #include "config.h"
>  #endif
>  
> +#include <string.h>
>  #include <stdio.h>
>  #include <errno.h>
>  #include <arpa/inet.h>
>
diff mbox series

Patch

diff --git a/tests/statdb_dump.c b/tests/statdb_dump.c
index 92d63f29..3ac12bff 100644
--- a/tests/statdb_dump.c
+++ b/tests/statdb_dump.c
@@ -23,6 +23,7 @@ 
 #include "config.h"
 #endif
 
+#include <string.h>
 #include <stdio.h>
 #include <errno.h>
 #include <arpa/inet.h>