# [PATCH] sh-i18n--envsubst.c: do not #include getopt.h

2 messages from 2011-06-17 to 2011-06-17. Participants: Brandon Casey, Junio C Hamano.
Thread: https://gitlist.dev/t/27646

## Brandon Casey, 2011-06-17 18:19

Subject: [PATCH] sh-i18n--envsubst.c: do not #include getopt.h
Message-ID: <kRqfchEd_hGmm2-6DxLIF_ZcWaZwm2iR22QJo3x5ntYrK5NZzsgLexeDbn1dSo9BMP8SLjkiTqiNION3P1CL0w@cipher.nrlssc.navy.mil>
URL: https://gitlist.dev/e/kRqfchEd_hGmm2-6DxLIF_ZcWaZwm2iR22QJo3x5ntYrK5NZzsgLexeDbn1dSo9BMP8SLjkiTqiNION3P1CL0w%40cipher.nrlssc.navy.mil

```
From: Brandon Casey <drafnel@gmail.com>

The getopt.h header file is not used.  It's inclusion is left over from the
original version of this source.  Additionally, getopt.h does not exist on
all platforms (SunOS 5.7) and will cause a compilation failure.  So, let's
remove it.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 sh-i18n--envsubst.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/sh-i18n--envsubst.c b/sh-i18n--envsubst.c
index 2eb0ee4..9d2e971 100644
--- a/sh-i18n--envsubst.c
+++ b/sh-i18n--envsubst.c
@@ -51,7 +51,6 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #include <errno.h>
-#include <getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-- 
1.7.6.rc1.3.g600a62

```

## Junio C Hamano, 2011-06-17 21:28

Subject: Re: [PATCH] sh-i18n--envsubst.c: do not #include getopt.h
Message-ID: <7vhb7of8q3.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vhb7of8q3.fsf%40alter.siamese.dyndns.org
In-Reply-To: <kRqfchEd_hGmm2-6DxLIF_ZcWaZwm2iR22QJo3x5ntYrK5NZzsgLexeDbn1dSo9BMP8SLjkiTqiNION3P1CL0w@cipher.nrlssc.navy.mil>

```
Brandon Casey <casey@nrlssc.navy.mil> writes:

> From: Brandon Casey <drafnel@gmail.com>
>
> The getopt.h header file is not used.  It's inclusion is left over from the
> original version of this source.  Additionally, getopt.h does not exist on
> all platforms (SunOS 5.7) and will cause a compilation failure.  So, let's
> remove it.
>
> Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>

Thanks; will queue.

```
