summaryrefslogtreecommitdiff
path: root/cmd-line-utils/libedit/sys.h
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay.choubey@oracle.com>2011-10-21 18:10:12 +0530
committerNirbhay Choubey <nirbhay.choubey@oracle.com>2011-10-21 18:10:12 +0530
commit62a40350b162a73a20a0d66b7efebd470b520c2b (patch)
treec44019e9b92d9f1aed476942f1bf47f6e88d4752 /cmd-line-utils/libedit/sys.h
parente1c4021bde046618699d52399a2b9a081f328a64 (diff)
downloadmariadb-git-62a40350b162a73a20a0d66b7efebd470b520c2b.tar.gz
Bug#13106585 PUSH FOR "WL#5945 : IMPROVE LIBEDIT LIBRARY"
BREAKS SOURCE RELEASE BUILD Some of the required files were not getting copied while performing 'make dist' and hence the build failed for the created distribution source. Added the missing files to Makefile.am.
Diffstat (limited to 'cmd-line-utils/libedit/sys.h')
-rw-r--r--cmd-line-utils/libedit/sys.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/cmd-line-utils/libedit/sys.h b/cmd-line-utils/libedit/sys.h
index 2731fb5f30e..33638d1565b 100644
--- a/cmd-line-utils/libedit/sys.h
+++ b/cmd-line-utils/libedit/sys.h
@@ -92,8 +92,21 @@ size_t strlcpy(char *dst, const char *src, size_t size);
char *fgetln(FILE *fp, size_t *len);
#endif
-#ifndef HAVE_WCSDUP
+#ifdef __linux__
+/* Apparently we need _GNU_SOURCE defined to get access to wcsdup on Linux */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+#endif
+
+#ifndef __USE_XOPEN
+#define __USE_XOPEN
+#endif
+
#include <wchar.h>
+#include <wctype.h>
+
+#ifndef HAVE_WCSDUP
wchar_t *wcsdup(const wchar_t *);
#endif