2019-04-15 02:11:43

by Rosen Penev

[permalink] [raw]
Subject: [PATCH] idmapd: Add missing libgen header

Otherwise compilation can fail with an implicit declaration of basename.

Signed-off-by: Rosen Penev <[email protected]>
---
utils/idmapd/idmapd.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c
index 91c0253..62e37b8 100644
--- a/utils/idmapd/idmapd.c
+++ b/utils/idmapd/idmapd.c
@@ -59,6 +59,7 @@
#include <grp.h>
#include <limits.h>
#include <ctype.h>
+#include <libgen.h>
#include <nfsidmap.h>

#ifdef HAVE_CONFIG_H
--
2.17.1



2019-04-16 18:27:51

by Steve Dickson

[permalink] [raw]
Subject: Re: [PATCH] idmapd: Add missing libgen header



On 4/14/19 10:11 PM, Rosen Penev wrote:
> Otherwise compilation can fail with an implicit declaration of basename.
>
> Signed-off-by: Rosen Penev <[email protected]>
Committed...

steved.

> ---
> utils/idmapd/idmapd.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c
> index 91c0253..62e37b8 100644
> --- a/utils/idmapd/idmapd.c
> +++ b/utils/idmapd/idmapd.c
> @@ -59,6 +59,7 @@
> #include <grp.h>
> #include <limits.h>
> #include <ctype.h>
> +#include <libgen.h>
> #include <nfsidmap.h>
>
> #ifdef HAVE_CONFIG_H
>