From 0edd0c857858745b74c21ddd6d9663baa5663eed Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 2 Jun 2015 17:09:25 +0000
Subject: Haiku patch


diff --git a/src/shar.c b/src/shar.c
index 11cbada..59f95da 100644
--- a/src/shar.c
+++ b/src/shar.c
@@ -51,6 +51,8 @@ static const char cright_years_z[] =
 #endif
 #include <time.h>
 
+#include "gettext.h"
+
 #include "inttostr.h"
 #include "liballoca.h"
 #include "md5.c"
diff --git a/src/unshar.c b/src/unshar.c
index 80bc3a9..006dec8 100644
--- a/src/unshar.c
+++ b/src/unshar.c
@@ -30,6 +30,7 @@
 #include <ctype.h>
 #include <fcntl.h>
 
+#include "gettext.h"
 #include "xgetcwd.h"
 
 /*
diff --git a/src/uudecode.c b/src/uudecode.c
index 0621c99..18d103a 100644
--- a/src/uudecode.c
+++ b/src/uudecode.c
@@ -55,6 +55,7 @@ static char const cright_years_z[] =
 #define  UUDECODE_C  1
 #include "uudecode-opts.h"
 #include "liballoca.h"
+#include "gettext.h"
 
 #if HAVE_LOCALE_H
 #else
diff --git a/src/uuencode.c b/src/uuencode.c
index c651798..704ffef 100644
--- a/src/uuencode.c
+++ b/src/uuencode.c
@@ -64,6 +64,8 @@ static const char cright_years_z[] =
 #define  UUENCODE_C  1
 #include "uuencode-opts.h"
 
+#include "gettext.h"
+
 #if HAVE_LOCALE_H
 #else
 # define setlocale(Category, Locale)
@@ -251,7 +253,7 @@ process_opts (int argc, char ** argv, int * mode)
   if (HAVE_OPT(ENCODE_FILE_NAME))
     {
       size_t nmlen = strlen (output_name);
-      size_t bfsz  = nmlen + (nmlen / 3) + 4;;
+      size_t bfsz  = nmlen + (nmlen / 3) + 4;
       char * p = malloc (bfsz);
       if (p == NULL)
         fserr (UUENCODE_EXIT_FAILURE, "malloc", _("file name"));
-- 
2.2.2

