1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

o) Fix build error in console.c with readline support

PR:		-
Submitted by:	Kris Kennaway <kris@obsecurity.org>
This commit is contained in:
Lars Koeller 2004-07-03 09:11:54 +00:00
parent e331461bcc
commit 7fdacad5df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=112841
4 changed files with 128 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= bacula
PORTVERSION= 1.34.5
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula

View File

@ -0,0 +1,63 @@
*** src/console/console.c.orig Sun Jun 20 13:43:02 2004
--- src/console/console.c Sat Jul 3 10:48:13 2004
***************
*** 63,69 ****
/* Forward referenced functions */
static void terminate_console(int sig);
! int get_cmd(FILE *input, const char *prompt, BSOCK *sock, int sec);
static int do_outputcmd(FILE *input, BSOCK *UA_sock);
void senditf(const char *fmt, ...);
void sendit(const char *buf);
--- 63,69 ----
/* Forward referenced functions */
static void terminate_console(int sig);
! int get_cmd(FILE *input, char *prompt, BSOCK *sock, int sec);
static int do_outputcmd(FILE *input, BSOCK *UA_sock);
void senditf(const char *fmt, ...);
void sendit(const char *buf);
***************
*** 200,206 ****
static void read_and_process_input(FILE *input, BSOCK *UA_sock)
{
! const char *prompt = "*";
bool at_prompt = false;
int tty_input = isatty(fileno(input));
int stat;
--- 200,206 ----
static void read_and_process_input(FILE *input, BSOCK *UA_sock)
{
! char *prompt = "*";
bool at_prompt = false;
int tty_input = isatty(fileno(input));
int stat;
***************
*** 499,510 ****
#ifdef HAVE_READLINE
#define READLINE_LIBRARY 1
#undef free
#include "readline.h"
#include "history.h"
-
int
! get_cmd(FILE *input, const char *prompt, BSOCK *sock, int sec)
{
char *line;
--- 499,510 ----
#ifdef HAVE_READLINE
#define READLINE_LIBRARY 1
#undef free
+ #include <stdio.h>
#include "readline.h"
#include "history.h"
int
! get_cmd(FILE *input, char *prompt, BSOCK *sock, int sec)
{
char *line;

View File

@ -7,6 +7,7 @@
PORTNAME= bacula
PORTVERSION= 1.34.5
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula

View File

@ -0,0 +1,63 @@
*** src/console/console.c.orig Sun Jun 20 13:43:02 2004
--- src/console/console.c Sat Jul 3 10:48:13 2004
***************
*** 63,69 ****
/* Forward referenced functions */
static void terminate_console(int sig);
! int get_cmd(FILE *input, const char *prompt, BSOCK *sock, int sec);
static int do_outputcmd(FILE *input, BSOCK *UA_sock);
void senditf(const char *fmt, ...);
void sendit(const char *buf);
--- 63,69 ----
/* Forward referenced functions */
static void terminate_console(int sig);
! int get_cmd(FILE *input, char *prompt, BSOCK *sock, int sec);
static int do_outputcmd(FILE *input, BSOCK *UA_sock);
void senditf(const char *fmt, ...);
void sendit(const char *buf);
***************
*** 200,206 ****
static void read_and_process_input(FILE *input, BSOCK *UA_sock)
{
! const char *prompt = "*";
bool at_prompt = false;
int tty_input = isatty(fileno(input));
int stat;
--- 200,206 ----
static void read_and_process_input(FILE *input, BSOCK *UA_sock)
{
! char *prompt = "*";
bool at_prompt = false;
int tty_input = isatty(fileno(input));
int stat;
***************
*** 499,510 ****
#ifdef HAVE_READLINE
#define READLINE_LIBRARY 1
#undef free
#include "readline.h"
#include "history.h"
-
int
! get_cmd(FILE *input, const char *prompt, BSOCK *sock, int sec)
{
char *line;
--- 499,510 ----
#ifdef HAVE_READLINE
#define READLINE_LIBRARY 1
#undef free
+ #include <stdio.h>
#include "readline.h"
#include "history.h"
int
! get_cmd(FILE *input, char *prompt, BSOCK *sock, int sec)
{
char *line;