From bc5e0cd2288c5e1d812a94b681b79a0cc4694ed5 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 14 May 2001 23:28:29 +0000 Subject: [PATCH] * background.h: Omit definitions that require FileOpContext if fileopctx.h has not been included yet. --- src/ChangeLog | 3 +++ src/background.h | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 31cc336f6..34a2d712a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-05-14 Pavel Roskin + * background.h: Omit definitions that require FileOpContext if + fileopctx.h has not been included yet. + * background.c (real_message_2s): Declare arguments "const" when possible. (real_message_3s): Likewise. diff --git a/src/background.h b/src/background.h index 7721031c6..a5ba7f37a 100644 --- a/src/background.h +++ b/src/background.h @@ -36,9 +36,13 @@ extern struct TaskList *task_list; extern int background_wait; -int do_background (FileOpContext *ctx, char *info); void tell_parent (int msg); + +/* fileopctx.h must be included for FileOpContext to be defined */ +#ifdef FILEOPCTX_H +int do_background (FileOpContext *ctx, char *info); int parent_call (void *routine, FileOpContext *ctx, int argc, ...); +#endif /* FILEOPCTX_H */ void unregister_task_running (pid_t, int fd);