#include <arpa/inet.h>
#include <string.h>
+#include "config.h"
#include "intl.h"
#include "util-ank.h"
#include "net-support.h"
{
char *basename;
+#if I18N
+ bindtextdomain("net-tools", "/usr/share/locale");
+ textdomain("net-tools");
+#endif
+
basename = strrchr(argv[0], '/');
if (basename == NULL)
basename = argv[0];
#include <arpa/inet.h>
#include <linux/if_tunnel.h>
+#include "config.h"
#include "intl.h"
#include "net-support.h"
#include "version.h"
{
char *basename;
+#if I18N
+ bindtextdomain("net-tools", "/usr/share/locale");
+ textdomain("net-tools");
+#endif
+
basename = strrchr(argv[0], '/');
if (basename == NULL)
basename = argv[0];
$(CC) -o $@ -shared -Wl,--whole-archive -Wl,--soname -Wl,$(SONAME) -nostdlib -nostartfiles $<
clean:
- rm -f *.o *~ *.orig
+ rm -f *.o *~ *.orig lib$(NET_LIB_NAME).a lib$(NET_LIB_NAME).so
clobber: clean
- rm -f *.a *.so
# End of lib/Makefile.
#define AFTRANS_CNT 10
#define EINTERN(file, text) fprintf(stderr, \
- "%s: Internal Error `%s'.\n",file,text);
+ _("%s: Internal Error `%s'.\n"),file,text);
#define ENOSUPP(A,B) fprintf(stderr,\
_("%s: feature `%s' not supported.\n" \
#include <sys/ioctl.h>
#include <net/if.h>
#include <linux/if_plip.h>
+
#include "config.h"
#include "intl.h"
-
#include "net-support.h"
#include "version.h"
int ret = 0;
char **spp;
+#if I18N
+ bindtextdomain("net-tools", "/usr/share/locale");
+ textdomain("net-tools");
+#endif
+
if ((skfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
perror("socket");
exit(-1);