components/getopt/patches/getopt.c.patch
author zihao.zhu@oracle.com <zihao.zhu@oracle.com>
Mon, 17 Oct 2016 09:22:53 -0700
changeset 7116 24e5d18aa27c
parent 1211 72f88619e71d
permissions -rw-r--r--
23606339 openldap role audit class not set to "cusa"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1211
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
Need to #include <locale.h> 
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
as LC_ALL wasn't being found otherwise.
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
--- getopt-1.1.5/getopt.c.orig	2012-11-14 07:57:53.606143868 -0800
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
+++ getopt-1.1.5/getopt.c	2012-11-14 08:03:26.644112033 -0800
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
@@ -58,6 +58,7 @@
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
 #include <string.h>
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
 #include <unistd.h>
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
 #include <ctype.h>
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
+#include <locale.h>
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
 
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
 #if LIBCGETOPT
72f88619e71d PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
 #include <getopt.h>