Skip to contentSkip to conversation

nfs-utils: tools: use nls.h

PATCH New Rosen Penev 1 participant 1 message Apr 4, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs-utils: tools: use nls.h

libintl.h is not available everywhere. This fixes compilation.

---
 tools/rpcgen/rpc_main.c | 2 +-
 tools/rpcgen/rpc_scan.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/rpcgen/rpc_main.c +1 -1
index 1b26e522..e97940b9 100644
@@ -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)
tools/rpcgen/rpc_scan.c +1 -1
index 79eba964..7de61120 100644
@@ -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)
Signature · 1 line
2.25.1