summaryrefslogtreecommitdiff
path: root/cmd-line-utils/libedit/histedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/libedit/histedit.h')
-rw-r--r--cmd-line-utils/libedit/histedit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd-line-utils/libedit/histedit.h b/cmd-line-utils/libedit/histedit.h
index 9f2b245f851..523d27b0be2 100644
--- a/cmd-line-utils/libedit/histedit.h
+++ b/cmd-line-utils/libedit/histedit.h
@@ -43,7 +43,12 @@
#define LIBEDIT_MAJOR 2
#define LIBEDIT_MINOR 11
+/* XXXMYSQL : stdint.h might not be available on older Solaris platforms. */
+#if defined(__sun) || defined(__sun__)
+#include <sys/inttypes.h>
+#else
#include <stdint.h>
+#endif
#include <sys/types.h>
#include <stdio.h>