diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2003-01-18 20:28:48 +0400 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2003-01-18 20:28:48 +0400 |
commit | 316029ab011dd51d2a652a76a4a72a633b9eb938 (patch) | |
tree | 5c0247f2c0a6adbb61acd182e5def92ef978df93 /cmd-line-utils/libedit/compat.h | |
parent | f4574b691ec23446d2df2bd3e1790647ecd05728 (diff) | |
download | mariadb-git-316029ab011dd51d2a652a76a4a72a633b9eb938.tar.gz |
changes for readline/libedit configuration
Diffstat (limited to 'cmd-line-utils/libedit/compat.h')
-rw-r--r-- | cmd-line-utils/libedit/compat.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cmd-line-utils/libedit/compat.h b/cmd-line-utils/libedit/compat.h new file mode 100644 index 00000000000..f432ac45dfc --- /dev/null +++ b/cmd-line-utils/libedit/compat.h @@ -0,0 +1,39 @@ +#ifndef __LIBEDIT_COMPATH_H +#define __LIBEDIT_COMPATH_H + +#define __RCSID(x) +#define __COPYRIGHT(x) + +#include "compat_conf.h" + +#ifndef HAVE_VIS_H +/* string visual representation - may want to reimplement */ +#define strvis(d,s,m) strcpy(d,s) +#define strunvis(d,s) strcpy(d,s) +#endif + +#ifndef HAVE_FGETLN +#include "fgetln.h" +#endif + +#ifndef HAVE_ISSETUGID +#define issetugid() (getuid()!=geteuid() || getegid()!=getgid()) +#endif + +#ifndef HAVE_STRLCPY +#include "strlcpy.h" +#endif + +#if HAVE_SYS_CDEFS_H +#include <sys/cdefs.h> +#endif + +#ifndef __P +#ifdef __STDC__ +#define __P(x) x +#else +#define __P(x) () +#endif +#endif + +#endif |