* background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
* background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
Этот коммит содержится в:
родитель
d1693c3d39
Коммит
97af90af3c
@ -1,5 +1,8 @@
|
||||
2001-07-27 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
|
||||
* background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
|
||||
|
||||
* util.c (mc_mkstemps): Don't prepend $TMPDIR if prefix contains
|
||||
path separator.
|
||||
|
||||
|
@ -32,7 +32,9 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
# include <sys/param.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
@ -47,7 +49,7 @@
|
||||
* We currenlty only support one way of comunicating the background
|
||||
* and foreground process by using the socketpair system call
|
||||
*/
|
||||
#ifdef USE_NETCODE
|
||||
#ifdef WITH_BACKGROUND
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
#include "dialog.h"
|
||||
@ -404,7 +406,7 @@ background_attention (int fd, void *closure)
|
||||
mc_refresh ();
|
||||
#ifndef HAVE_X
|
||||
doupdate ();
|
||||
#endif
|
||||
#endif /* !HAVE_X */
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -565,7 +567,7 @@ input_dialog_help (char *header, char *text, char *help, char *def_text)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#endif
|
||||
#endif /* !WITH_BACKGROUND */
|
||||
|
||||
/* {{{ Functions shared between background and foreground */
|
||||
|
||||
|
@ -1,12 +1,6 @@
|
||||
#ifndef __BACKGROUND_H
|
||||
#define __BACKGROUND_H
|
||||
|
||||
/* Background code requires socketpair to be available */
|
||||
/* Do not add the background code if it is not supported */
|
||||
#ifdef HAVE_SOCKETPAIR
|
||||
# define WITH_BACKGROUND
|
||||
#endif
|
||||
|
||||
/* Used for parent/child communication. These are numbers that
|
||||
* could not possible be a routine address.
|
||||
*/
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user