[2/2] nfs-utils: tools: use nls.h
diff mbox series

Message ID 20200404052453.2631191-2-rosenp@gmail.com
State New
Headers show
Series
  • [1/2] nfs-utils: print time in 64-bit
Related show

Commit Message

Rosen Penev April 4, 2020, 5:24 a.m. UTC
libintl.h is not available everywhere. This fixes compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 tools/rpcgen/rpc_main.c | 2 +-
 tools/rpcgen/rpc_scan.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Steve Dickson April 14, 2020, 2:25 p.m. UTC | #1
On 4/4/20 1:24 AM, Rosen Penev wrote:
> libintl.h is not available everywhere. This fixes compilation.
> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>

Committed... (tag: nfs-utils-2-4-4-rc3)

steved.
> ---
>  tools/rpcgen/rpc_main.c | 2 +-
>  tools/rpcgen/rpc_scan.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c
> index 1b26e522..e97940b9 100644
> --- a/tools/rpcgen/rpc_main.c
> +++ b/tools/rpcgen/rpc_main.c
> @@ -42,7 +42,6 @@
>  #include <stdio.h>
>  #include <string.h>
>  #include <unistd.h>
> -#include <libintl.h>
>  #include <locale.h>
>  #include <ctype.h>
>  #include <sys/types.h>
> @@ -54,6 +53,7 @@
>  #include "rpc_util.h"
>  #include "rpc_scan.h"
>  #include "proto.h"
> +#include "nls.h"
>  
>  #ifndef _
>  #define _(String) gettext (String)
> diff --git a/tools/rpcgen/rpc_scan.c b/tools/rpcgen/rpc_scan.c
> index 79eba964..7de61120 100644
> --- a/tools/rpcgen/rpc_scan.c
> +++ b/tools/rpcgen/rpc_scan.c
> @@ -37,11 +37,11 @@
>  #include <stdio.h>
>  #include <ctype.h>
>  #include <string.h>
> -#include <libintl.h>
>  #include "rpc_scan.h"
>  #include "rpc_parse.h"
>  #include "rpc_util.h"
>  #include "proto.h"
> +#include "nls.h"
>  
>  #ifndef _
>  #define _(String) gettext (String)
>

Patch
diff mbox series

diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c
index 1b26e522..e97940b9 100644
--- a/tools/rpcgen/rpc_main.c
+++ b/tools/rpcgen/rpc_main.c
@@ -42,7 +42,6 @@ 
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <libintl.h>
 #include <locale.h>
 #include <ctype.h>
 #include <sys/types.h>
@@ -54,6 +53,7 @@ 
 #include "rpc_util.h"
 #include "rpc_scan.h"
 #include "proto.h"
+#include "nls.h"
 
 #ifndef _
 #define _(String) gettext (String)
diff --git a/tools/rpcgen/rpc_scan.c b/tools/rpcgen/rpc_scan.c
index 79eba964..7de61120 100644
--- a/tools/rpcgen/rpc_scan.c
+++ b/tools/rpcgen/rpc_scan.c
@@ -37,11 +37,11 @@ 
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
-#include <libintl.h>
 #include "rpc_scan.h"
 #include "rpc_parse.h"
 #include "rpc_util.h"
 #include "proto.h"
+#include "nls.h"
 
 #ifndef _
 #define _(String) gettext (String)