libedit: Solaris portability fixes
__sun braced curses prototypes no longer compile on Solaris, remove them
This commit is contained in:
		| @@ -187,8 +187,7 @@ | |||||||
|    slash. */ |    slash. */ | ||||||
| #undef LSTAT_FOLLOWS_SLASHED_SYMLINK | #undef LSTAT_FOLLOWS_SLASHED_SYMLINK | ||||||
|  |  | ||||||
| /* Define to the sub-directory in which libtool stores uninstalled libraries. | /* Define to the sub-directory where libtool stores uninstalled libraries. */ | ||||||
|    */ |  | ||||||
| #undef LT_OBJDIR | #undef LT_OBJDIR | ||||||
|  |  | ||||||
| /* Name of package */ | /* Name of package */ | ||||||
|   | |||||||
| @@ -81,15 +81,6 @@ typedef struct { | |||||||
| #define	A_K_EN		5 | #define	A_K_EN		5 | ||||||
| #define	A_K_NKEYS	6 | #define	A_K_NKEYS	6 | ||||||
|  |  | ||||||
| #ifdef __sun |  | ||||||
| extern int tgetent(char *, const char *); |  | ||||||
| extern int tgetflag(char *); |  | ||||||
| extern int tgetnum(char *); |  | ||||||
| extern int tputs(const char *, int, int (*)(int)); |  | ||||||
| extern char* tgoto(const char*, int, int); |  | ||||||
| extern char* tgetstr(char*, char**); |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| protected void	term_move_to_line(EditLine *, int); | protected void	term_move_to_line(EditLine *, int); | ||||||
| protected void	term_move_to_char(EditLine *, int); | protected void	term_move_to_char(EditLine *, int); | ||||||
| protected void	term_clear_EOL(EditLine *, int); | protected void	term_clear_EOL(EditLine *, int); | ||||||
|   | |||||||
| @@ -113,15 +113,6 @@ char	*fgetln(FILE *fp, size_t *len); | |||||||
| #define	REGEX		/* Use POSIX.2 regular expression functions */ | #define	REGEX		/* Use POSIX.2 regular expression functions */ | ||||||
| #undef	REGEXP		/* Use UNIX V8 regular expression functions */ | #undef	REGEXP		/* Use UNIX V8 regular expression functions */ | ||||||
|  |  | ||||||
| #if defined(__sun) |  | ||||||
| extern int tgetent(char *, const char *); |  | ||||||
| extern int tgetflag(char *); |  | ||||||
| extern int tgetnum(char *); |  | ||||||
| extern int tputs(const char *, int, int (*)(int)); |  | ||||||
| extern char* tgoto(const char*, int, int); |  | ||||||
| extern char* tgetstr(char*, char**); |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| #ifdef notdef | #ifdef notdef | ||||||
| # undef REGEX | # undef REGEX | ||||||
| # undef REGEXP | # undef REGEXP | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Luke Howard
					Luke Howard