From 2fec54ae077693bf9bc6263e03d28b35b61bd17a Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Sun, 13 Mar 2011 15:36:32 +0100
Subject: [PATCH 036/396] getopt[-susv3].c: use libinth's _(x)

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 libc/unistd/getopt-susv3.c |    9 +--------
 libc/unistd/getopt.c       |   10 ----------
 2 files changed, 1 insertions(+), 18 deletions(-)

diff --git a/libc/unistd/getopt-susv3.c b/libc/unistd/getopt-susv3.c
index d7b8d0d..49f9626 100644
--- a/libc/unistd/getopt-susv3.c
+++ b/libc/unistd/getopt-susv3.c
@@ -22,14 +22,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <getopt.h>
-
-
-#ifdef __UCLIBC_MJN3_ONLY__
-#warning TODO: Enable gettext awareness.
-#endif /* __UCLIBC_MJN3_ONLY__ */
-
-#undef _
-#define _(X)   X
+#include <libintl.h>
 
 #ifdef __BCC__
 static const char missing[] = "option requires an argument";
diff --git a/libc/unistd/getopt.c b/libc/unistd/getopt.c
index f1ee0f4..a709b42 100644
--- a/libc/unistd/getopt.c
+++ b/libc/unistd/getopt.c
@@ -72,22 +72,12 @@
 # include <unixlib.h>
 #endif
 
-#if !defined __UCLIBC__ && !defined __UCLIBC_HAS_GETTEXT_AWARENESS__
 #ifdef _LIBC
 # include <libintl.h>
 #else
 # include "gettext.h"
 # define _(msgid) gettext (msgid)
 #endif
-#else
-#ifdef __UCLIBC_MJN3_ONLY__
-#warning TODO: Enable gettext awareness.
-#endif /* __UCLIBC_MJN3_ONLY__ */
-
-#undef _
-#define _(X)	X
-
-#endif
 
 /* Treat '-W foo' the same as the long option '--foo',
  * disabled for the moment since it costs about 2k... */
-- 
1.7.0.4

