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 |
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 --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>
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(+)